Index: src/gpu/gl/GrGLUtil.cpp |
diff --git a/src/gpu/gl/GrGLUtil.cpp b/src/gpu/gl/GrGLUtil.cpp |
index 96e26c78261be5cd407502c787cc69c2fd980673..c47d409fb75d297ea90fe18f3ba84f64a345a63b 100644 |
--- a/src/gpu/gl/GrGLUtil.cpp |
+++ b/src/gpu/gl/GrGLUtil.cpp |
@@ -191,7 +191,7 @@ GrGLVendor GrGLGetVendorFromString(const char* vendorString) { |
return kQualcomm_GrGLVendor; |
} |
if (0 == strcmp(vendorString, "NVIDIA Corporation")) { |
- return kNVIDIA_GrGLVendor; |
+ return kNVIDIA_GrGLVendor; |
} |
} |
return kOther_GrGLVendor; |
@@ -204,6 +204,14 @@ GrGLRenderer GrGLGetRendererFromString(const char* rendererString) { |
} else if (0 == strcmp(rendererString, "NVIDIA Tegra")) { |
return kTegra2_GrGLRenderer; |
} |
+ int lastDigit; |
+ int n = sscanf(rendererString, "PowerVR SGX 54%d", &lastDigit); |
+ if (1 == n && lastDigit >= 0 && lastDigit <= 9) { |
+ return kPowerVR54x_GrGLRenderer; |
+ } |
robertphillips
2014/11/05 14:23:00
0 == or !strcmp ?
bsalomon
2014/11/05 14:56:47
Oh, duh. Thought I had fixed this locally, but mus
|
+ if (strcmp(rendererString, "PowerVR Rogue")) { |
+ return kPowerVRRogue_GrGLRenderer; |
+ } |
} |
return kOther_GrGLRenderer; |
} |