Skip to content

Commit

Permalink
sdl: enable SDL_GL_CONTEXT_EGL when building OPENGL ES
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal1137 committed Aug 17, 2019
1 parent eb91a4d commit 4404855
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sdl/sdl_glimp.c
Expand Up @@ -223,7 +223,7 @@ static void GLimp_InitCvars(void)
r_mode = Cvar_Get("r_mode", "-2", CVAR_ARCHIVE | CVAR_LATCH | CVAR_UNSAFE);
r_customaspect = Cvar_Get("r_customaspect", "1", CVAR_ARCHIVE | CVAR_LATCH);
r_displayRefresh = Cvar_Get("r_displayRefresh", "0", CVAR_LATCH);
Cvar_CheckRange(r_displayRefresh, 0, 240, qtrue);
Cvar_CheckRange(r_displayRefresh, 0, 200, qtrue);

// Window render surface cvars
r_stencilbits = Cvar_Get("r_stencilbits", "0", CVAR_ARCHIVE | CVAR_LATCH | CVAR_UNSAFE);
Expand Down Expand Up @@ -661,7 +661,6 @@ static int GLimp_SetMode(glconfig_t *glConfig, int mode, qboolean fullscreen, qb

// SDL2 uses opengl by default, if we want opengl es we need to set this attribute
#ifdef FEATURE_RENDERER_GLES
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 1);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_EGL, 1);
#endif

Expand Down

0 comments on commit 4404855

Please sign in to comment.