Browse Source

At shutdown, free surfaces and textures allocated for virtual gamepad graphics

pull/7685/head
staphen 1 year ago committed by Gleb Mazovetskiy
parent
commit
09ba7532ea
  1. 1
      Source/engine/dx.cpp

1
Source/engine/dx.cpp

@ -114,6 +114,7 @@ void dx_cleanup()
RendererTextureSurface = nullptr;
#ifndef USE_SDL1
texture = nullptr;
FreeVirtualGamepadTextures();
if (*sgOptions.Graphics.upscale)
SDL_DestroyRenderer(renderer);
#endif

Loading…
Cancel
Save