Show error dialog if OpenGL initialization fails (#1890)

install-platforms
Lukas Werling 2017-12-28 17:31:51 +01:00
parent c3122b4890
commit 86926377a5
1 changed files with 4 additions and 0 deletions

View File

@ -346,6 +346,10 @@ CStdGLCtx *CStdGL::CreateContext(C4Window * pWindow, C4AbstractApp *pApp)
LogSilentF("GLExt: %s", gl_extensions ? gl_extensions : "");
}
}
if (!success)
{
pApp->MessageDialog("Error while initializing OpenGL. Check the log file for more information. This usually means your GPU is too old.");
}
}
if (!success)
{