2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-12-28 19:55:09 +01:00

platform/sdl: fix safegl

This commit is contained in:
mittorn 2023-10-13 05:02:06 +03:00 committed by Alibek Omarov
parent c7dd9d6437
commit 6041bb0a43

View File

@ -812,8 +812,13 @@ qboolean VID_CreateWindow( int width, int height, window_mode_t window_mode )
{
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();
}