From 8f3c4493a43f479ab928e86070a41ede22f33576 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 28 Oct 2025 07:58:26 -0700
Subject: [PATCH] Fixed recreating non-OpenGL X11 windows on every mode change
---
src/SDL12_compat.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index 8dedf514f..4972cc00f 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -6500,7 +6500,6 @@ SetVideoModeImpl(int width, int height, int bpp, Uint32 flags12)
*/
const SDL_bool recreate_window = (
((VideoSurface12->flags & SDL12_OPENGL) != (flags12 & SDL12_OPENGL)) ||
- ((flags12 & SDL12_OPENGL) != SDL12_OPENGL) ||
(!VideoSurface12->format || (VideoSurface12->format->BitsPerPixel != bpp)) ||
((VideoSurface12->flags & SDL12_NOFRAME) != (flags12 & SDL12_NOFRAME))
) ? SDL_TRUE : SDL_FALSE;