Back out f137a421233f (bug 1234441) for build bustage

CLOSED TREE
This commit is contained in:
Phil Ringnalda 2016-01-11 19:32:02 -08:00
parent a177a88494
commit fdd4160809

View File

@ -228,20 +228,9 @@ ParseGLSLVersion(GLContext* gl, uint32_t* out_version)
return true;
}
const fnSkipPrefix = [&versionString](const char* prefix) {
const auto len = strlen(prefix);
if (strncmp(versionString, prefix, len) == 0)
versionString += len;
};
const char kGLESVersionPrefix[] = "OpenGL ES GLSL ES";
fnSkipPrefix(kGLESVersionPrefix);
if (gl->WorkaroundDriverBugs()) {
// Nexus 7 2013 (bug 1234441)
const char kBadGLESVersionPrefix[] = "OpenGL ES GLSL";
fnSkipPrefix(kBadGLESVersionPrefix);
}
if (strncmp(versionString, kGLESVersionPrefix, strlen(kGLESVersionPrefix)) == 0)
versionString += strlen(kGLESVersionPrefix);
const char* itr = versionString;
char* end = nullptr;