diff options
Diffstat (limited to 'platform/qt/qt5.cmake')
-rw-r--r-- | platform/qt/qt5.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/qt/qt5.cmake b/platform/qt/qt5.cmake index c4af774ba3..d083c45073 100644 --- a/platform/qt/qt5.cmake +++ b/platform/qt/qt5.cmake @@ -5,6 +5,11 @@ find_package(Qt5OpenGL REQUIRED) find_package(Qt5Widgets REQUIRED) find_package(Qt5Sql REQUIRED) +# Qt5 always build OpenGL ES2 which is the compatibility +# mode. Qt5 will take care of translating the desktop +# version of OpenGL to ES2. +add_definitions("-DMBGL_USE_GLES2") + set(MBGL_QT_CORE_LIBRARIES PUBLIC Qt5::Core PUBLIC Qt5::Gui |