commit | 55e713c697fdea27b13e45bffcdeaabf2a546b88 | [log] [tgz] |
---|---|---|
author | djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Mar 20 15:28:14 2012 +0000 |
committer | djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Mar 20 15:28:14 2012 +0000 |
tree | 04bd54c8f7f312d8ee4269caf264ecaca46514e8 | |
parent | 0a89c90d18ab5082f2fde5076ce422aac493bb00 [diff] [blame] |
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
diff --git a/src/gpu/gl/GrGLInterface.cpp b/src/gpu/gl/GrGLInterface.cpp index 7fb871c..75047ca 100644 --- a/src/gpu/gl/GrGLInterface.cpp +++ b/src/gpu/gl/GrGLInterface.cpp
@@ -95,6 +95,15 @@ 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; }