[core] blacklist VAO usage on adreno 3xx

- Causes crashes on usage of glBuffer(Sub)Data
This commit is contained in:
Ivo van Dongen
2017-10-20 12:44:02 -07:00
committed by Ivo van Dongen
parent 424ba0d9de
commit 45dc313009

View File

@@ -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;