mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-22 01:45:19 +01:00
platform/sdl: fix safegl
This commit is contained in:
parent
b59f00dacf
commit
7b67ce3e7c
@ -783,8 +783,13 @@ qboolean VID_CreateWindow( int width, int height, qboolean fullscreen )
|
||||
{
|
||||
if( !glw_state.initialized )
|
||||
{
|
||||
if( !GL_CreateContext( ))
|
||||
return false;
|
||||
while( !GL_CreateContext( ))
|
||||
{
|
||||
glw_state.safe++;
|
||||
if(glw_state.safe > SAFE_DONTCARE)
|
||||
return false;
|
||||
GL_SetupAttributes(); // re-choose attributes
|
||||
}
|
||||
|
||||
VID_StartupGamma();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user