Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Unified Diff: src/gpu/gl/GrGLInterface.cpp

Issue 778703003: Add glGetShaderPrecisionFormat (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/gl/GrGLAssembleInterface.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLInterface.cpp
diff --git a/src/gpu/gl/GrGLInterface.cpp b/src/gpu/gl/GrGLInterface.cpp
index 8054fd5d1e5f0c14341f43a8ab6a2f1b813ba0ca..d4db766bcc00177092a186647990a2808f7f30a9 100644
--- a/src/gpu/gl/GrGLInterface.cpp
+++ b/src/gpu/gl/GrGLInterface.cpp
@@ -461,6 +461,15 @@ bool GrGLInterface::validate() const {
}
}
+ if (kGLES_GrGLStandard == fStandard || glVer >= GR_GL_VER(4,1) ||
+ fExtensions.has("GL_ARB_ES2_compatibility")) {
+#if 0 // Enable this once Chrome gives us the function ptr
+ if (NULL == fFunctions.fGetShaderPrecisionFormat) {
+ RETURN_FALSE_INTERFACE
+ }
+#endif
+ }
+
if (fExtensions.has("GL_NV_path_rendering")) {
if (NULL == fFunctions.fPathCommands ||
NULL == fFunctions.fPathCoords ||
« no previous file with comments | « src/gpu/gl/GrGLAssembleInterface.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698