Browse Source

fix destroying renderer

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

3
Source/dx.cpp

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

Loading…
Cancel
Save