diff options
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 358793daa..be16d68e0 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -830,6 +830,7 @@ void GraphicsManager::initOpenGLFunctions() { const bool is10 = checkGLVersion(1, 0); const bool is11 = checkGLVersion(1, 1); + const bool is12 = checkGLVersion(1, 2); const bool is20 = checkGLVersion(2, 0); const bool is21 = checkGLVersion(2, 1); mSupportModernOpengl = true; @@ -856,6 +857,15 @@ void GraphicsManager::initOpenGLFunctions() if (!is11) return; + if (is12 && supportExtension("GL_ARB_texture_storage")) + { + logger->log1("found GL_ARB_texture_storage"); + assignFunction(glTexStorage2D, "glTexStorage2D"); + } + else + { + logger->log1("GL_ARB_texture_storage not found"); + } if (supportExtension("GL_ARB_framebuffer_object")) { // frame buffer supported logger->log1("found GL_ARB_framebuffer_object"); |