From 0ffef697b09e31c11b559c93f1e682f4f262e4dc Mon Sep 17 00:00:00 2001 From: qndel Date: Fri, 17 Sep 2021 11:24:56 +0200 Subject: [PATCH] fix destroying renderer --- Source/dx.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/dx.cpp b/Source/dx.cpp index ec041526e..a97482a26 100644 --- a/Source/dx.cpp +++ b/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); }