diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-04 17:55:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-04 18:01:07 +0300 |
commit | ec5b0e17ff735e58de139b7f8ce0598928958bcc (patch) | |
tree | 786d6a6497c56136d8d00430fe7d0861b9c1cd06 /src/graphicsmanager.cpp | |
parent | 141849d0370607b17103c2dbbb1973a14b8b7554 (diff) | |
download | plus-ec5b0e17ff735e58de139b7f8ce0598928958bcc.tar.gz plus-ec5b0e17ff735e58de139b7f8ce0598928958bcc.tar.bz2 plus-ec5b0e17ff735e58de139b7f8ce0598928958bcc.tar.xz plus-ec5b0e17ff735e58de139b7f8ce0598928958bcc.zip |
Add buffers related OpenGL functions.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 324337871..f7c877c1f 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -884,8 +884,7 @@ void GraphicsManager::initOpenGLFunctions() if (!mglPopGroupMarker) assignFunction(glPopGroupMarker, "glPopGroupMarker"); } - - if (checkGLVersion(3, 0) || supportExtension("GL_ARB_vertex_array_object")) + if (checkGLVersion(2, 1) && supportExtension("GL_ARB_vertex_array_object")) { assignFunction(glGenVertexArrays, "glGenVertexArrays"); assignFunction(glBindVertexArray, "glBindVertexArray"); @@ -895,6 +894,13 @@ void GraphicsManager::initOpenGLFunctions() assignFunction(glDisableVertexAttribArray, "glDisableVertexAttribArray"); } + if (checkGLVersion(1, 5)) + { + assignFunction(glGenBuffers, "glGenBuffers"); + assignFunction(glDeleteBuffers, "glDeleteBuffers"); + assignFunction(glBindBuffer, "glBindBuffer"); + assignFunction(glBufferData, "glBufferData"); + } #ifdef WIN32 assignFunction(wglGetExtensionsString, "wglGetExtensionsStringARB"); |