summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-10 22:30:02 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-10 22:30:02 +0300
commita10d89a8cb317d9148f2008d8a4b7d4c9af8c4a2 (patch)
tree56d9cf21a03a29ccfff0f7d5e9d1ad42790a6290 /src/graphicsmanager.cpp
parent01e2d489c4346d6d3862023f3da40f809da45fe6 (diff)
downloadmv-a10d89a8cb317d9148f2008d8a4b7d4c9af8c4a2.tar.gz
mv-a10d89a8cb317d9148f2008d8a4b7d4c9af8c4a2.tar.bz2
mv-a10d89a8cb317d9148f2008d8a4b7d4c9af8c4a2.tar.xz
mv-a10d89a8cb317d9148f2008d8a4b7d4c9af8c4a2.zip
Add some vertex OpenGL functions.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index c7e4777e1..7e7e4230f 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -1029,6 +1029,13 @@ void GraphicsManager::initOpenGLFunctions()
assignFunction(glProgramUniform3f, "glProgramUniform3f");
assignFunction(glProgramUniform4f, "glProgramUniform4f");
}
+ if (checkGLVersion(4, 3)
+ || supportExtension("GL_ARB_vertex_attrib_binding"))
+ {
+ assignFunction(glBindVertexBuffer, "glBindVertexBuffer");
+ assignFunction(glVertexAttribBinding, "glVertexAttribBinding");
+ assignFunction(glVertexAttribFormat, "glVertexAttribFormat");
+ }
}
else
{