Browse Source

fix destroying renderer

pull/2891/head
qndel 5 years ago committed by Gleb Mazovetskiy
parent
commit
0ffef697b0
  1. 1
      Source/dx.cpp

1
Source/dx.cpp

@ -206,6 +206,7 @@ void dx_cleanup()
RendererTextureSurface = nullptr; RendererTextureSurface = nullptr;
#ifndef USE_SDL1 #ifndef USE_SDL1
texture = nullptr; texture = nullptr;
if (sgOptions.Graphics.bUpscale)
SDL_DestroyRenderer(renderer); SDL_DestroyRenderer(renderer);
#endif #endif
SDL_DestroyWindow(ghMainWnd); SDL_DestroyWindow(ghMainWnd);

Loading…
Cancel
Save