@ -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)
GL_SetupAttributes(); // re-choose attributes
}
VID_StartupGamma();