From 09ba7532eaa02ae0c6dbd9d8eb87c247f1bae0f9 Mon Sep 17 00:00:00 2001 From: staphen Date: Mon, 11 Nov 2024 09:04:29 -0500 Subject: [PATCH] At shutdown, free surfaces and textures allocated for virtual gamepad graphics --- Source/engine/dx.cpp | 1 + 1 file changed, 1 insertion(+) 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