summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-11 12:04:01 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-11 12:04:01 +0300
commit16aee7e951a63492548380517eb550be93ce4369 (patch)
tree30727de9a1cc21c0b136cae0aa9a0e6d9e032f4e /src/graphicsmanager.cpp
parent1d9fa814bd0eff8fe5d892141ee731f95143766f (diff)
downloadplus-16aee7e951a63492548380517eb550be93ce4369.tar.gz
plus-16aee7e951a63492548380517eb550be93ce4369.tar.bz2
plus-16aee7e951a63492548380517eb550be93ce4369.tar.xz
plus-16aee7e951a63492548380517eb550be93ce4369.zip
Add OpenGL glBindVertexBuffers.
Add info about missing and found OpenGL functions.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index 7e7e4230f..cfed98cb1 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -1024,18 +1024,37 @@ void GraphicsManager::initOpenGLFunctions()
if (checkGLVersion(4, 1)
|| supportExtension("GL_ARB_separate_shader_objects"))
{
+ logger->log1("found GL_ARB_separate_shader_objects");
assignFunction(glProgramUniform1f, "glProgramUniform1f");
assignFunction(glProgramUniform2f, "glProgramUniform2f");
assignFunction(glProgramUniform3f, "glProgramUniform3f");
assignFunction(glProgramUniform4f, "glProgramUniform4f");
}
+ else
+ {
+ logger->log1("GL_ARB_separate_shader_objects not supported");
+ }
if (checkGLVersion(4, 3)
|| supportExtension("GL_ARB_vertex_attrib_binding"))
{
+ logger->log1("found GL_ARB_vertex_attrib_binding");
assignFunction(glBindVertexBuffer, "glBindVertexBuffer");
assignFunction(glVertexAttribBinding, "glVertexAttribBinding");
assignFunction(glVertexAttribFormat, "glVertexAttribFormat");
}
+ else
+ {
+ logger->log1("GL_ARB_vertex_attrib_binding not supported");
+ }
+ if (checkGLVersion(4, 4) || supportExtension("GL_ARB_multi_bind"))
+ {
+ logger->log1("found GL_ARB_multi_bind");
+ assignFunction(glBindVertexBuffers, "glBindVertexBuffers");
+ }
+ else
+ {
+ logger->log1("GL_ARB_multi_bind not supported");
+ }
}
else
{