diff --git a/src/OpenGl/OpenGl_Caps.cxx b/src/OpenGl/OpenGl_Caps.cxx index e5b3c99ae4..39c14a818a 100644 --- a/src/OpenGl/OpenGl_Caps.cxx +++ b/src/OpenGl/OpenGl_Caps.cxx @@ -30,7 +30,11 @@ OpenGl_Caps::OpenGl_Caps() : vboDisable (Standard_False), pntSpritesDisable (Standard_False), contextStereo (Standard_False), +#ifdef DEB + contextDebug (Standard_True), +#else contextDebug (Standard_False), +#endif contextNoAccel (Standard_False) { // diff --git a/src/OpenGl/OpenGl_Context.cxx b/src/OpenGl/OpenGl_Context.cxx index 765f9bc839..a26f482876 100644 --- a/src/OpenGl/OpenGl_Context.cxx +++ b/src/OpenGl/OpenGl_Context.cxx @@ -634,7 +634,9 @@ void OpenGl_Context::init() { // setup default callback arbDbg->glDebugMessageCallbackARB (debugCallbackWrap, this); + #ifdef DEB glEnable (GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB); + #endif } }