summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorLeith Bade <leith@mapbox.com>2014-12-02 00:05:45 +1100
committerLeith Bade <leith@mapbox.com>2014-12-02 00:05:45 +1100
commitc8552e1b28cf93f0e2729680c945b2389f81226e (patch)
tree63a2ab284c4e82853ca4e6d347f96bfbd35153f1 /platform
parentd5fee5d71655d5d272c512c1157e42a8f391a665 (diff)
downloadqtlocation-mapboxgl-c8552e1b28cf93f0e2729680c945b2389f81226e.tar.gz
Fix VAOs on Linux
Diffstat (limited to 'platform')
-rw-r--r--platform/default/glfw_view.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/default/glfw_view.cpp b/platform/default/glfw_view.cpp
index 34b9ddbef1..31da0f9d19 100644
--- a/platform/default/glfw_view.cpp
+++ b/platform/default/glfw_view.cpp
@@ -75,10 +75,10 @@ void GLFWView::initialize(mbgl::Map *map_) {
if (extensions.find("GL_ARB_vertex_array_object") != std::string::npos) {
- gl::BindVertexArray = (gl::PFNGLBINDVERTEXARRAYPROC)glfwGetProcAddress("glBindVertexArrayARB");
- gl::DeleteVertexArrays = (gl::PFNGLDELETEVERTEXARRAYSPROC)glfwGetProcAddress("glDeleteVertexArraysARB");
- gl::GenVertexArrays = (gl::PFNGLGENVERTEXARRAYSPROC)glfwGetProcAddress("glGenVertexArraysARB");
- gl::IsVertexArray = (gl::PFNGLISVERTEXARRAYPROC)glfwGetProcAddress("glIsVertexArrayARB");
+ gl::BindVertexArray = (gl::PFNGLBINDVERTEXARRAYPROC)glfwGetProcAddress("glBindVertexArray");
+ gl::DeleteVertexArrays = (gl::PFNGLDELETEVERTEXARRAYSPROC)glfwGetProcAddress("glDeleteVertexArrays");
+ gl::GenVertexArrays = (gl::PFNGLGENVERTEXARRAYSPROC)glfwGetProcAddress("glGenVertexArrays");
+ gl::IsVertexArray = (gl::PFNGLISVERTEXARRAYPROC)glfwGetProcAddress("glIsVertexArray");
} else if (extensions.find("GL_APPLE_vertex_array_object") != std::string::npos) {
gl::BindVertexArray = (gl::PFNGLBINDVERTEXARRAYPROC)glfwGetProcAddress("glBindVertexArrayAPPLE");
gl::DeleteVertexArrays = (gl::PFNGLDELETEVERTEXARRAYSPROC)glfwGetProcAddress("glDeleteVertexArraysAPPLE");