diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-04-08 01:21:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-04-08 01:21:55 +0300 |
commit | 8781220335a1f7b8b60122df13fedba23bef9b35 (patch) | |
tree | 89785ca78b67731683e76e4ad6de62078e54c74e /src/graphicsmanager.cpp | |
parent | cf24722d84c7e4fd1d32365d720c291a48b9f9c8 (diff) | |
download | manaverse-8781220335a1f7b8b60122df13fedba23bef9b35.tar.gz manaverse-8781220335a1f7b8b60122df13fedba23bef9b35.tar.bz2 manaverse-8781220335a1f7b8b60122df13fedba23bef9b35.tar.xz manaverse-8781220335a1f7b8b60122df13fedba23bef9b35.zip |
Add support for OpenGL extension GL_EXT_debug_marker.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index e1c5bf35d..4817ecb03 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -833,6 +833,19 @@ void GraphicsManager::initOpenGLFunctions() if (!mglGetObjectLabel) assignFunction(glGetObjectLabel, "glGetObjectLabel"); } + if (supportExtension("GL_EXT_debug_marker")) + { + logger->log1("found GL_EXT_debug_marker"); + assignFunction(glInsertEventMarker, "glInsertEventMarkerEXT"); + if (!mglInsertEventMarker) + assignFunction(glInsertEventMarker, "glInsertEventMarker"); + assignFunction(glPushGroupMarker, "glPushGroupMarkerEXT"); + if (!mglPushGroupMarker) + assignFunction(glPushGroupMarker, "glPushGroupMarker"); + assignFunction(glPopGroupMarker, "glPopGroupMarkerEXT"); + if (!mglPopGroupMarker) + assignFunction(glPopGroupMarker, "glPopGroupMarker"); + } #ifdef WIN32 assignFunction(wglGetExtensionsString, "wglGetExtensionsStringARB"); |