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

Blacklist VAO usage on adreno 3xx #10253

Merged
merged 1 commit into from
Oct 26, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/mbgl/gl/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,14 @@ UniqueTexture Context::createTexture() {
}

bool Context::supportsVertexArrays() const {
return vertexArray &&
static bool blacklisted = []() {
// Blacklist Adreno 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 !blacklisted &&
vertexArray &&
vertexArray->genVertexArrays &&
vertexArray->bindVertexArray &&
vertexArray->deleteVertexArrays;
Expand Down