summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-21 20:29:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-21 20:29:35 +0300
commit2da60f580cf07d16c0c52d451641bcb0e5698923 (patch)
tree359bdc950646eba1fd81f2fb9635d1c2ee6645f0 /src/graphicsmanager.cpp
parentbcbf32f0ca331ea766148a534a2551b2e70fcc46 (diff)
downloadplus-2da60f580cf07d16c0c52d451641bcb0e5698923.tar.gz
plus-2da60f580cf07d16c0c52d451641bcb0e5698923.tar.bz2
plus-2da60f580cf07d16c0c52d451641bcb0e5698923.tar.xz
plus-2da60f580cf07d16c0c52d451641bcb0e5698923.zip
add Support for OpenGL extension GL_ARB_texture_storage.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp10
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");