From a815c16ab32645b098a3ae86c4895cbeccc6135a Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Tue, 31 Oct 2017 15:21:39 +0200 Subject: [PATCH] [qt] Fix build on some archs When building for certain platforms, don't redefine OpenGL constants we use. --- platform/qt/mbgl/gl/gl_impl.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/qt/mbgl/gl/gl_impl.hpp b/platform/qt/mbgl/gl/gl_impl.hpp index 218c528c6..a9f720db7 100644 --- a/platform/qt/mbgl/gl/gl_impl.hpp +++ b/platform/qt/mbgl/gl/gl_impl.hpp @@ -19,8 +19,13 @@ #include #include + #ifndef GL_RGBA8_OES #define GL_RGBA8_OES GL_RGBA8 + #endif + + #ifndef GL_DEPTH24_STENCIL8_OES #define GL_DEPTH24_STENCIL8_OES GL_DEPTH24_STENCIL8 + #endif #define glActiveTexture(...) QOpenGLContext::currentContext()->functions()->glActiveTexture(__VA_ARGS__) #define glAttachShader(...) QOpenGLContext::currentContext()->functions()->glAttachShader(__VA_ARGS__)