Skip to content

Commit

Permalink
GraphicsResourceStrategy.Dispose() (#1559)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkast authored May 12, 2024
1 parent e2f17c0 commit 40cdd24
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ public void Dispose()
_deviceStrategy.ContextLost -= this.GraphicsDeviceStrategy_ContextLost;
_deviceStrategy.Disposing -= this.GraphicsDeviceStrategy_Disposing;

_resourceStrategyRef.Target = null;
if (_resourceStrategyRef.Target != null)
_resourceStrategyRef.Target = null;
_deviceStrategy = null;
}
}
Expand Down

0 comments on commit 40cdd24

Please sign in to comment.