[core] blacklist VAO usage on adreno 3xx
- Causes crashes on usage of glBuffer(Sub)Data
This commit is contained in:
committed by
Ivo van Dongen
parent
424ba0d9de
commit
45dc313009
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user