[android] - blacklist adreno 2xx for VAO support

This commit is contained in:
Tobrun
2018-01-25 14:04:13 +01:00
committed by Tobrun
parent 7694c9c879
commit e2a4dffcb6

View File

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