Skip to content

Commit

Permalink
At shutdown, free surfaces and textures allocated for virtual gamepad…
Browse files Browse the repository at this point in the history
… graphics
  • Loading branch information
StephenCWills authored and glebm committed Nov 11, 2024
1 parent 553d135 commit 09ba753
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/engine/dx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ void dx_cleanup()
RendererTextureSurface = nullptr;
#ifndef USE_SDL1
texture = nullptr;
FreeVirtualGamepadTextures();
if (*sgOptions.Graphics.upscale)
SDL_DestroyRenderer(renderer);
#endif
Expand Down

0 comments on commit 09ba753

Please sign in to comment.