mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Back out f137a421233f (bug 1234441) for build bustage
CLOSED TREE
This commit is contained in:
parent
a177a88494
commit
fdd4160809
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user