summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTobrun <tobrun.van.nuland@gmail.com>2018-01-25 14:04:13 +0100
committerTobrun <tobrun@mapbox.com>2018-02-05 12:03:19 +0100
commitc8a96bb24ff23513b67c258e60f5820ee3134802 (patch)
tree050de6d41d86190c454e1e352cfaf4ced5038390 /src
parentc636b382e8bd61a05dd976d9aeb0ce5ae0894b0e (diff)
downloadqtlocation-mapboxgl-c8a96bb24ff23513b67c258e60f5820ee3134802.tar.gz
[android] - blacklist adreno 2xx for VAO support
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/gl/context.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mbgl/gl/context.cpp b/src/mbgl/gl/context.cpp
index d8ade8b8b8..d1a37a861a 100644
--- a/src/mbgl/gl/context.cpp
+++ b/src/mbgl/gl/context.cpp
@@ -249,9 +249,10 @@ UniqueTexture Context::createTexture() {
bool Context::supportsVertexArrays() const {
static bool blacklisted = []() {
- // Blacklist Adreno 3xx as it crashes on glBuffer(Sub)Data
+ // Blacklist Adreno 2xx, 3xx as it crashes on glBuffer(Sub)Data
const std::string renderer = reinterpret_cast<const char*>(glGetString(GL_RENDERER));
- return renderer.find("Adreno (TM) 3") != std::string::npos;
+ return renderer.find("Adreno (TM) 2") != std::string::npos
+ || renderer.find("Adreno (TM) 3") != std::string::npos;
}();
return !blacklisted &&