diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-04-07 21:57:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-04-07 21:57:33 +0300 |
commit | cf24722d84c7e4fd1d32365d720c291a48b9f9c8 (patch) | |
tree | 05f2bd60e8199d5fec00507f4fef95c51dab0873 /src/graphicsmanager.cpp | |
parent | e786bcdc61657e4b2e2cae4bf6f44bb70a14587a (diff) | |
download | plus-cf24722d84c7e4fd1d32365d720c291a48b9f9c8.tar.gz plus-cf24722d84c7e4fd1d32365d720c291a48b9f9c8.tar.bz2 plus-cf24722d84c7e4fd1d32365d720c291a48b9f9c8.tar.xz plus-cf24722d84c7e4fd1d32365d720c291a48b9f9c8.zip |
Add support for OpenGL extension GL_EXT_debug_label.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index d158527e1..e1c5bf35d 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -821,6 +821,18 @@ void GraphicsManager::initOpenGLFunctions() logger->log1("found GL_GREMEDY_frame_terminator"); assignFunction(glFrameTerminator, "glFrameTerminatorGREMEDY"); } + if (supportExtension("GL_EXT_debug_label")) + { + logger->log1("found GL_EXT_debug_label"); + assignFunction(glLabelObject, "glLabelObjectEXT"); + if (!mglLabelObject) + assignFunction(glLabelObject, "glLabelObject"); + if (!mglLabelObject) + assignFunction(glLabelObject, "glObjectLabel"); + assignFunction(glGetObjectLabel, "glGetObjectLabelEXT"); + if (!mglGetObjectLabel) + assignFunction(glGetObjectLabel, "glGetObjectLabel"); + } #ifdef WIN32 assignFunction(wglGetExtensionsString, "wglGetExtensionsStringARB"); |