Add temp android modification to the GLSL version check

Review URL: https://codereview.appspot.com/5845076

git-svn-id: http://skia.googlecode.com/svn/trunk@3440 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
djsollen@google.com 2012-03-20 15:28:14 +00:00
parent 0a89c90d18
commit 55e713c697

View File

@ -95,6 +95,15 @@ GrGLSLVersion GrGLGetGLSLVersionFromString(const char* versionString) {
if (2 == n) {
return GR_GLSL_VER(major, minor);
}
#ifdef SK_BUILD_FOR_ANDROID
// android hack until the gpu vender updates their drivers
n = sscanf(versionString, "OpenGL ES GLSL %d.%d", &major, &minor);
if (2 == n) {
return GR_GLSL_VER(major, minor);
}
#endif
return 0;
}