summaryrefslogtreecommitdiff
path: root/platform/qt/mbgl/gl/gl_impl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/qt/mbgl/gl/gl_impl.hpp')
-rw-r--r--platform/qt/mbgl/gl/gl_impl.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/platform/qt/mbgl/gl/gl_impl.hpp b/platform/qt/mbgl/gl/gl_impl.hpp
new file mode 100644
index 0000000000..5e4c6f12af
--- /dev/null
+++ b/platform/qt/mbgl/gl/gl_impl.hpp
@@ -0,0 +1,21 @@
+#pragma once
+
+#include <QtGlobal>
+
+// Qt4
+#if QT_VERSION < 0x050000
+ #if MBGL_USE_GLES2
+ #define GL_GLEXT_PROTOTYPES
+ #include <GLES2/gl2.h>
+ #include <GLES2/gl2ext.h>
+ #else
+ #define GL_GLEXT_PROTOTYPES
+ #include <GL/gl.h>
+ #include <GL/glext.h>
+ #endif
+
+// Qt5
+#else
+ #define GL_GLEXT_PROTOTYPES
+ #include <QtGui/qopengl.h>
+#endif