Call GC.SuppressFinalize() from Dispose().
GitOrigin-RevId: 57b1d3760a781966e3dd673970b535bb8cade1a2
This commit is contained in:
parent
af9a48bc5d
commit
2fe8e53e77
@ -30,6 +30,7 @@ namespace SemiColinGames {
|
|||||||
public void Dispose() {
|
public void Dispose() {
|
||||||
vertexBuffer.Dispose();
|
vertexBuffer.Dispose();
|
||||||
indexBuffer.Dispose();
|
indexBuffer.Dispose();
|
||||||
|
GC.SuppressFinalize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Update(Player player, AABB[] collisionTargets) {
|
public void Update(Player player, AABB[] collisionTargets) {
|
||||||
|
@ -45,6 +45,7 @@ namespace SemiColinGames {
|
|||||||
lightingTarget.Dispose();
|
lightingTarget.Dispose();
|
||||||
lightingEffect.Dispose();
|
lightingEffect.Dispose();
|
||||||
spriteBatch.Dispose();
|
spriteBatch.Dispose();
|
||||||
|
GC.SuppressFinalize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Draw(World world, Player player, LinesOfSight linesOfSight) {
|
public void Draw(World world, Player player, LinesOfSight linesOfSight) {
|
||||||
|
Loading…
Reference in New Issue
Block a user