Emit a fatal error if glewInit() failed.
This commit is contained in:
parent
88f21e2490
commit
3d63d5e010
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user