diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-19 19:56:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-19 21:57:39 +0300 |
commit | 6b1d0fde009bdf8ac1e4b54c6c27254fdec4b58d (patch) | |
tree | 77e4aa775f069e90cdabd6d07db671aa1df5ad41 /src/graphicsmanager.cpp | |
parent | 17f8465e4358d43accfb0b486b87c18e7dedd83b (diff) | |
download | manaverse-6b1d0fde009bdf8ac1e4b54c6c27254fdec4b58d.tar.gz manaverse-6b1d0fde009bdf8ac1e4b54c6c27254fdec4b58d.tar.bz2 manaverse-6b1d0fde009bdf8ac1e4b54c6c27254fdec4b58d.tar.xz manaverse-6b1d0fde009bdf8ac1e4b54c6c27254fdec4b58d.zip |
Add some more OpenGL functions from GL_KHR_debug.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 3609f1e85..1d9914592 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -899,6 +899,9 @@ void GraphicsManager::initOpenGLFunctions() logger->log1("found GL_KHR_debug"); assignFunction(glDebugMessageControl, "glDebugMessageControl"); assignFunction(glDebugMessageCallback, "glDebugMessageCallback"); + assignFunction(glPushDebugGroup, "glPushDebugGroup"); + assignFunction(glPopDebugGroup, "glPopDebugGroup"); + assignFunction(glObjectLabel, "glObjectLabel"); mSupportDebug = 2; } else if (supportExtension("GL_ARB_debug_output")) @@ -1282,6 +1285,12 @@ static CALLBACK void debugCallback(GLenum source, GLenum type, GLuint id, case GL_DEBUG_TYPE_MARKER: message.append(" MARKER"); break; + case GL_DEBUG_TYPE_PUSH_GROUP: + message.append(" PUSH GROUP"); + break; + case GL_DEBUG_TYPE_POP_GROUP: + message.append(" POP GROUP"); + break; default: message.append(" ?").append(toString(type)); break; |