There's no need to repeatedly retry if context creation fails, the
GPU and driver capabilities won't have changed.
Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
context = SDL_GL_CreateContext(window);
if (context == NULL)
- {
- Con_Printf(CON_ERROR "Failed to initialize OpenGL context: %s\n", SDL_GetError());
- VID_Shutdown();
- return false;
- }
+ Sys_Error("Failed to initialize OpenGL context: %s\n", SDL_GetError());
GL_InitFunctions();
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_COMPATIBILITY);
context = SDL_GL_CreateContext(window);
if (context == NULL)
- {
- Con_Printf(CON_ERROR "Failed to initialize OpenGL context: %s\n", SDL_GetError());
- VID_Shutdown();
- return false;
- }
+ Sys_Error("Failed to initialize OpenGL context: %s\n", SDL_GetError());
}
#endif