mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-15 21:50:59 +01:00
sdl: add EGL hint
This commit is contained in:
parent
8f8c8e6614
commit
84a3f6883d
@ -896,7 +896,10 @@ int GL_SetAttribute( int attr, int val )
|
||||
case REF_GL_CONTEXT_PROFILE_MASK:
|
||||
#ifdef SDL_HINT_OPENGL_ES_DRIVER
|
||||
if( val == REF_GL_CONTEXT_PROFILE_ES )
|
||||
{
|
||||
SDL_SetHint(SDL_HINT_OPENGL_ES_DRIVER, "1");
|
||||
SDL_SetHint( "SDL_VIDEO_X11_FORCE_EGL", "1" );
|
||||
}
|
||||
#endif // SDL_HINT_OPENGL_ES_DRIVER
|
||||
return SDL_GL_SetAttribute( SDL_GL_CONTEXT_PROFILE_MASK, val );
|
||||
#endif
|
||||
@ -974,6 +977,8 @@ qboolean R_Init_Video( const int type )
|
||||
#if SDL_VERSION_ATLEAST( 2, 0, 0 ) && !XASH_WIN32
|
||||
SDL_SetHint( "SDL_VIDEO_X11_XRANDR", "1" );
|
||||
SDL_SetHint( "SDL_VIDEO_X11_XVIDMODE", "1" );
|
||||
if( Sys_CheckParm( "-egl" ) )
|
||||
SDL_SetHint( "SDL_VIDEO_X11_FORCE_EGL", "1" );
|
||||
#endif
|
||||
|
||||
// must be initialized before creating window
|
||||
|
Loading…
Reference in New Issue
Block a user