Skip to content

Commit

Permalink
fix invisible mouse cursor and console text
Browse files Browse the repository at this point in the history
  • Loading branch information
jdarpinian committed May 6, 2024
1 parent 63957db commit 7701715
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/sdl/sdl_glimp.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

#ifdef USE_GL4ES
#include <gl4esinit.h>
#include <gl4eshint.h>
#define ioq3_GetProcAddress gl4es_GetProcAddress
#else
#define ioq3_GetProcAddress SDL_GL_GetProcAddress
Expand Down Expand Up @@ -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 )
Expand Down

0 comments on commit 7701715

Please sign in to comment.