From d98928d74decdd7a88f25776a7cb65a4aeee4707 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Wed, 3 Sep 2025 09:41:02 -0400 Subject: [PATCH] Thanks debian --- src/sdl/i_video.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sdl/i_video.cpp b/src/sdl/i_video.cpp index 55606aad1..0f323ebeb 100644 --- a/src/sdl/i_video.cpp +++ b/src/sdl/i_video.cpp @@ -255,7 +255,10 @@ static SDL_bool Impl_RenderContextReset(void) if (renderer) { SDL_DestroyRenderer(renderer); +// Thanks Debian.... +#if SDL_VERSION_ATLEAST(2,28,0) SDL_DestroyWindowSurface(window); // workaround for a bug in sdl +#endif texture = NULL; // Destroying a renderer also destroys all of its textures } renderer = NULL;