summaryrefslogtreecommitdiff
path: root/include/mbgl/platform
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-08-14 18:24:53 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-08-14 18:30:45 +0200
commitd6bfb4be651d512708d953a26f27907c4f7940d7 (patch)
tree9bef6e8fe99e9b00087a3dee94408aa899c3f1ae /include/mbgl/platform
parent1799c1b04c7123fa66fe333bdabf0ba575c9c54c (diff)
downloadqtlocation-mapboxgl-d6bfb4be651d512708d953a26f27907c4f7940d7.tar.gz
fix binding to vaos
Diffstat (limited to 'include/mbgl/platform')
-rw-r--r--include/mbgl/platform/gl.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/mbgl/platform/gl.hpp b/include/mbgl/platform/gl.hpp
index a29b230dbf..cc2a681d42 100644
--- a/include/mbgl/platform/gl.hpp
+++ b/include/mbgl/platform/gl.hpp
@@ -26,9 +26,12 @@
#elif TARGET_OS_MAC
#include <OpenGL/OpenGL.h>
#include <OpenGL/gl.h>
- #define glGenVertexArrays glGenVertexArraysAPPLE
- #define glBindVertexArray glBindVertexArrayAPPLE
- #define glDeleteVertexArrays glDeleteVertexArraysAPPLE
+ #if GL_APPLE_vertex_array_object
+ #define GL_ARB_vertex_array_object 1
+ #define glGenVertexArrays glGenVertexArraysAPPLE
+ #define glBindVertexArray glBindVertexArrayAPPLE
+ #define glDeleteVertexArrays glDeleteVertexArraysAPPLE
+ #endif
#else
#error Unsupported Apple platform
#endif