From 16aee7e951a63492548380517eb550be93ce4369 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 11 Jun 2014 12:04:01 +0300 Subject: Add OpenGL glBindVertexBuffers. Add info about missing and found OpenGL functions. --- src/graphicsmanager.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/graphicsmanager.cpp') 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 { -- cgit v1.2.3-70-g09d2