mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0024230: TKOpenGl - request debug context by default in debug mode
Enable GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB only for debug builds.
This commit is contained in:
parent
9be3a89476
commit
fcdbe2010e
@ -30,7 +30,11 @@ OpenGl_Caps::OpenGl_Caps()
|
|||||||
: vboDisable (Standard_False),
|
: vboDisable (Standard_False),
|
||||||
pntSpritesDisable (Standard_False),
|
pntSpritesDisable (Standard_False),
|
||||||
contextStereo (Standard_False),
|
contextStereo (Standard_False),
|
||||||
|
#ifdef DEB
|
||||||
|
contextDebug (Standard_True),
|
||||||
|
#else
|
||||||
contextDebug (Standard_False),
|
contextDebug (Standard_False),
|
||||||
|
#endif
|
||||||
contextNoAccel (Standard_False)
|
contextNoAccel (Standard_False)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
|
@ -634,7 +634,9 @@ void OpenGl_Context::init()
|
|||||||
{
|
{
|
||||||
// setup default callback
|
// setup default callback
|
||||||
arbDbg->glDebugMessageCallbackARB (debugCallbackWrap, this);
|
arbDbg->glDebugMessageCallbackARB (debugCallbackWrap, this);
|
||||||
|
#ifdef DEB
|
||||||
glEnable (GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB);
|
glEnable (GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user