Emit a fatal error if glewInit() failed.

This commit is contained in:
Vincent Lejeune 2014-09-06 23:39:51 +02:00
parent 88f21e2490
commit 3d63d5e010

View File

@ -98,7 +98,8 @@ void initGL()
if (is_gl_init)
return;
is_gl_init = true;
glewInit();
if (GLEW_OK != glewInit())
Log::fatal("GLEW", "Glew initialisation failed, can't continue.");
#ifdef ARB_DEBUG_OUTPUT
if (glDebugMessageCallbackARB)
glDebugMessageCallbackARB((GLDEBUGPROCARB)debugCallback, NULL);