From 340227d9c741de7fafc86b149c48e573b38ac3cc Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Wed, 15 Jan 2025 13:13:13 -0500
Subject: [PATCH] SDL_config.h: Force some sdl2-compat-specific workarounds.
---
include/SDL2/SDL_config.h | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/include/SDL2/SDL_config.h b/include/SDL2/SDL_config.h
index eabd78b..5fb4182 100644
--- a/include/SDL2/SDL_config.h
+++ b/include/SDL2/SDL_config.h
@@ -56,4 +56,17 @@
#error Wrong SDL_config.h, check your include path?
#endif
+
+/* DEFINES ADDED BY SDL2-COMPAT */
+
+/* Some programs (incorrectly, probably) check defines that aren't available
+ with an SDL2 that doesn't have a configure-generated SDL_config.h, so force
+ a few that might be important. */
+#ifndef SDL_VIDEO_OPENGL
+#define SDL_VIDEO_OPENGL 1
+#endif
+
+/* END DEFINES ADDED BY SDL2-COMPAT */
+
+
#endif /* SDL_config_h_ */