diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-04-13 22:54:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-04-13 22:54:28 +0300 |
commit | bcdf34645ff3067d3b4110120b6191af2b0b2e99 (patch) | |
tree | 428493a138f0fdaebd4c915153f0dcdcbaedf76d /src/graphicsmanager.cpp | |
parent | a93d1e06f928f6e4e1c7f3c58ddb7ae3676c1c63 (diff) | |
parent | b64a1f46b930516927b1290c1d6771b491b84958 (diff) | |
download | plus-bcdf34645ff3067d3b4110120b6191af2b0b2e99.tar.gz plus-bcdf34645ff3067d3b4110120b6191af2b0b2e99.tar.bz2 plus-bcdf34645ff3067d3b4110120b6191af2b0b2e99.tar.xz plus-bcdf34645ff3067d3b4110120b6191af2b0b2e99.zip |
Merge branch 'master' into stable
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index b40f8df57..30d50340a 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -816,6 +816,42 @@ void GraphicsManager::initOpenGLFunctions() mSupportDebug = 0; } + if (supportExtension("GL_GREMEDY_frame_terminator")) + { + 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"); + } + if (supportExtension("GL_GREMEDY_string_marker")) + { + logger->log1("found GL_GREMEDY_string_marker"); + assignFunction(glPushGroupMarker, "glStringMarkerGREMEDY"); + } + else 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"); #endif |