Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] - blacklist adreno 2xx for VAO support
Browse files Browse the repository at this point in the history
  • Loading branch information
tobrun committed Jan 29, 2018
1 parent 77f9399 commit 8102872
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mbgl/gl/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,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 &&
Expand Down

0 comments on commit 8102872

Please sign in to comment.