Skip to content

Commit

Permalink
Merge pull request #6869 from craftworkgames/patch-1
Browse files Browse the repository at this point in the history
Fix issue #6453 - SwapChain is null in GraphicsDevice.PlatformDispose
  • Loading branch information
Jjagg committed Aug 21, 2019
2 parents 2c4bace + c11f037 commit 1cc1372
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -945,7 +945,7 @@ private void PlatformClear(ClearOptions options, Vector4 color, float depth, int
private void PlatformDispose()
{
// make sure to release full screen or this might cause issues on exit
if (_swapChain.IsFullScreen)
if (_swapChain != null && _swapChain.IsFullScreen)
_swapChain.SetFullscreenState(false, null);

SharpDX.Utilities.Dispose(ref _renderTargetView);
Expand Down

0 comments on commit 1cc1372

Please sign in to comment.