diff --git a/Source/engine/dx.cpp b/Source/engine/dx.cpp index 29f935a23..fac62d516 100644 --- a/Source/engine/dx.cpp +++ b/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