enable ogl debug with ifdefs

This commit is contained in:
Eduardo Bart
2012-04-12 16:56:05 -03:00
parent 879827bdbc
commit 0b8d8b4595
2 changed files with 5 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ void Graphics::init()
if(err != GLEW_OK)
logFatal("Unable to init GLEW: ", glewGetErrorString(err));
#ifndef NDEBUG
#ifdef DEBUG_OPENGL
if(GLEW_ARB_debug_output)
glDebugMessageCallbackARB(oglDebugCallback, NULL);
#endif