summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-10 16:01:10 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-10 16:01:10 +0300
commit3881abdfade04f992208296491498f0736e5ac81 (patch)
treedde266eef149c7201f5a039eb3e452612e510a51 /src/graphicsmanager.cpp
parent740b10240414ae3b7c37ee21fd131ffdb296b2b9 (diff)
downloadplus-3881abdfade04f992208296491498f0736e5ac81.tar.gz
plus-3881abdfade04f992208296491498f0736e5ac81.tar.bz2
plus-3881abdfade04f992208296491498f0736e5ac81.tar.xz
plus-3881abdfade04f992208296491498f0736e5ac81.zip
Add pointer to OpenGL function glBindAttribLocation.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index 05e4de782..bd7347e53 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -978,6 +978,12 @@ void GraphicsManager::initOpenGLFunctions()
}
}
+ if (is20 || supportExtension("GL_ARB_explicit_attrib_location"))
+ {
+ logger->log1("found GL_ARB_explicit_attrib_location");
+ assignFunction(glBindAttribLocation);
+ }
+
if (is12 && (is42 || supportExtension("GL_ARB_texture_storage")))
{
logger->log1("found GL_ARB_texture_storage");