Browse Source

Call GC.SuppressFinalize() from Dispose().

GitOrigin-RevId: 57b1d3760a
master
Colin McMillen 4 years ago
parent
commit
2fe8e53e77
  1. 1
      Shared/LinesOfSight.cs
  2. 1
      Shared/Scene.cs

1
Shared/LinesOfSight.cs

@ -30,6 +30,7 @@ namespace SemiColinGames {
public void Dispose() {
vertexBuffer.Dispose();
indexBuffer.Dispose();
GC.SuppressFinalize(this);
}
public void Update(Player player, AABB[] collisionTargets) {

1
Shared/Scene.cs

@ -45,6 +45,7 @@ namespace SemiColinGames {
lightingTarget.Dispose();
lightingEffect.Dispose();
spriteBatch.Dispose();
GC.SuppressFinalize(this);
}
public void Draw(World world, Player player, LinesOfSight linesOfSight) {

Loading…
Cancel
Save