SDL-1.2: atari:video: don't duplicate glext in SDL_atarigl.c

From 705e1d8bbf3c7de544a3ac085f2c6649864afe1c Mon Sep 17 00:00:00 2001
From: Miro Kropacek <[EMAIL REDACTED]>
Date: Wed, 30 Sep 2026 23:32:58 +1000
Subject: [PATCH] atari:video: don't duplicate glext in SDL_atarigl.c

SDL_atarigl.c includes <GL/osmesa.h>, which pulls in Mesa's glext.h,
before SDL_opengl.h. SDL_opengl.h unconditionally clears the glext
include guards after including gl.h, so its own glext copy is compiled
on top of Mesa's. Define NO_SDL_GLEXT so only Mesa's glext.h is used in
this file.
---
 src/video/ataricommon/SDL_atarigl.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/video/ataricommon/SDL_atarigl.c b/src/video/ataricommon/SDL_atarigl.c
index dfcfe619..001a57f1 100644
--- a/src/video/ataricommon/SDL_atarigl.c
+++ b/src/video/ataricommon/SDL_atarigl.c
@@ -19,6 +19,9 @@
     Sam Lantinga
     slouken@libsdl.org
 */
+/* osmesa.h already brings in Mesa's glext.h; skip SDL_opengl.h's copy */
+#define NO_SDL_GLEXT
+
 #include "SDL_config.h"
 
 /* Atari OSMesa implementation of SDL OpenGL support */