From 86926377a51398c24d1338bdd2523d13724da486 Mon Sep 17 00:00:00 2001 From: Lukas Werling Date: Thu, 28 Dec 2017 17:31:51 +0100 Subject: [PATCH] Show error dialog if OpenGL initialization fails (#1890) --- src/graphics/C4DrawGL.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/graphics/C4DrawGL.cpp b/src/graphics/C4DrawGL.cpp index a31434182..41d4904a5 100644 --- a/src/graphics/C4DrawGL.cpp +++ b/src/graphics/C4DrawGL.cpp @@ -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) {