From 958086bd44bf07f6ef5b6e6aff785074b299509e Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Fri, 21 Apr 2017 15:35:52 +0300 Subject: [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. --- mapbox-gl-native.pro | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.1