summaryrefslogtreecommitdiff
path: root/src/mbgl/gl
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2017-11-23 14:47:29 -0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2017-11-24 01:30:39 -0200
commit43d96cd1b969f328af60ed0d1e0775de3a6f8b13 (patch)
tree85b2f1c39cdf5be76bfdd7db45130f0c85bde7b9 /src/mbgl/gl
parent01565e5a8b307bb086a72194bf6d6bb3511833c5 (diff)
downloadqtlocation-mapboxgl-43d96cd1b969f328af60ed0d1e0775de3a6f8b13.tar.gz
[core] Fix crash on Qt + Windows + ANGLE
Support for VAO extensions is broken.
Diffstat (limited to 'src/mbgl/gl')
-rw-r--r--src/mbgl/gl/context.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mbgl/gl/context.hpp b/src/mbgl/gl/context.hpp
index 5d57093b36..14f078367f 100644
--- a/src/mbgl/gl/context.hpp
+++ b/src/mbgl/gl/context.hpp
@@ -289,8 +289,13 @@ private:
std::vector<RenderbufferID> abandonedRenderbuffers;
public:
- // For testing
+ // For testing and Windows because Qt + ANGLE
+ // crashes with VAO enabled.
+#if defined(_WINDOWS)
+ bool disableVAOExtension = true;
+#else
bool disableVAOExtension = false;
+#endif
};
} // namespace gl