From 77017151858cb47e7f902ea655df2247e03498df Mon Sep 17 00:00:00 2001 From: James Darpinian Date: Sun, 5 May 2024 23:16:09 -0700 Subject: [PATCH] fix invisible mouse cursor and console text --- code/sdl/sdl_glimp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/sdl/sdl_glimp.c b/code/sdl/sdl_glimp.c index 8a9b360f0a..6094fae874 100644 --- a/code/sdl/sdl_glimp.c +++ b/code/sdl/sdl_glimp.c @@ -37,6 +37,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #ifdef USE_GL4ES #include +#include #define ioq3_GetProcAddress gl4es_GetProcAddress #else #define ioq3_GetProcAddress SDL_GL_GetProcAddress @@ -392,6 +393,10 @@ static int GLimp_SetMode(int mode, qboolean fullscreen, qboolean noborder, qbool #if defined(USE_GL4ES) initialize_gl4es(); + // Disable this broken optimization GL4ES tries to do. It causes the text + // in the console to be invisible as well as the mouse pointer in some + // menu screens. + ((void (APIENTRY *)(GLenum, GLenum))gl4es_GetProcAddress("glHint"))(GL_BEGINEND_HINT_GL4ES, 0); #endif if ( r_allowResize->integer )