summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2017-04-21 15:35:52 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2017-04-21 15:35:52 +0300
commit958086bd44bf07f6ef5b6e6aff785074b299509e (patch)
tree4985dbe159efc992e100bb61291de196a03d9254
parentfa9e435795a958b44d50a5cd9cfb4a83363c1923 (diff)
downloadqtlocation-mapboxgl-958086bd44bf07f6ef5b6e6aff785074b299509e.tar.gz
[Qt] Fix build on Windows with Dynamic OpenGL
We can build for Windows with MinGW and ANGLE (OpenGL ES), but we need to force OpenGL ES.
-rw-r--r--mapbox-gl-native.pro6
1 files changed, 6 insertions, 0 deletions
diff --git a/mapbox-gl-native.pro b/mapbox-gl-native.pro
index 59090b928f..72837f3fb2 100644
--- a/mapbox-gl-native.pro
+++ b/mapbox-gl-native.pro
@@ -564,6 +564,12 @@ win32 {
-D_USE_MATH_DEFINES
}
+win32:qtConfig(dynamicgl) {
+ QMAKE_CXXFLAGS += \
+ -DMBGL_USE_GLES2 \
+ -DQT_OPENGL_ES_2
+}
+
qtConfig(opengles2) {
QMAKE_CXXFLAGS += \
-DMBGL_USE_GLES2