diff --git a/Shared/LinesOfSight.cs b/Shared/LinesOfSight.cs index de602b1..de3c708 100644 --- a/Shared/LinesOfSight.cs +++ b/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) { diff --git a/Shared/Scene.cs b/Shared/Scene.cs index 3b51a53..4b356f0 100644 --- a/Shared/Scene.cs +++ b/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) {