mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-09-11 13:52:31 +00:00
platform/sdl: fix safegl
This commit is contained in:
parent
c7dd9d6437
commit
6041bb0a43
@ -812,8 +812,13 @@ qboolean VID_CreateWindow( int width, int height, window_mode_t window_mode )
|
|||||||
{
|
{
|
||||||
if( !glw_state.initialized )
|
if( !glw_state.initialized )
|
||||||
{
|
{
|
||||||
if( !GL_CreateContext( ))
|
while( !GL_CreateContext( ))
|
||||||
return false;
|
{
|
||||||
|
glw_state.safe++;
|
||||||
|
if(glw_state.safe > SAFE_DONTCARE)
|
||||||
|
return false;
|
||||||
|
GL_SetupAttributes(); // re-choose attributes
|
||||||
|
}
|
||||||
|
|
||||||
VID_StartupGamma();
|
VID_StartupGamma();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user