summaryrefslogtreecommitdiff
path: root/include/mbgl/gl/gl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/gl/gl.hpp')
-rw-r--r--include/mbgl/gl/gl.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mbgl/gl/gl.hpp b/include/mbgl/gl/gl.hpp
index 7521b4c80d..3a577b289b 100644
--- a/include/mbgl/gl/gl.hpp
+++ b/include/mbgl/gl/gl.hpp
@@ -22,9 +22,9 @@
#define GL_GLEXT_PROTOTYPES
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
-#elif __QT__
+#elif __QT_ && QT_VERSION >= 0x050000
#define GL_GLEXT_PROTOTYPES
- #include <QtOpenGL>
+ #include <QtGui/qopengl.h>
#else
#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h>