Index: src/gpu/gl/GrGLInterface.cpp |
diff --git a/src/gpu/gl/GrGLInterface.cpp b/src/gpu/gl/GrGLInterface.cpp |
index da1c3fc0e13b2d57207ea4f813248a2eb9d4978c..d134cd56c82df3962949f3b6bf37effc9bb5c76f 100644 |
--- a/src/gpu/gl/GrGLInterface.cpp |
+++ b/src/gpu/gl/GrGLInterface.cpp |
@@ -114,8 +114,12 @@ bool GrGLInterface::validate() const { |
NULL == fFunctions.fBindAttribLocation || |
NULL == fFunctions.fBindBuffer || |
NULL == fFunctions.fBindTexture || |
+ NULL == fFunctions.fBlendColor || // -> GL >= 1.4 or extension, ES >= 2.0 |
+#if 0 |
+ // TODO: Re-enable validation for fBlendEquation when Chrome has it hooked up. |
+ NULL == fFunctions.fBlendEquation || // -> GL >= 1.4 or extension, ES >= 2.0 |
+#endif |
NULL == fFunctions.fBlendFunc || |
- NULL == fFunctions.fBlendColor || // -> GL >= 1.4, ES >= 2.0 or extension |
NULL == fFunctions.fBufferData || |
NULL == fFunctions.fBufferSubData || |
NULL == fFunctions.fClear || |
@@ -321,6 +325,13 @@ bool GrGLInterface::validate() const { |
} |
} |
+ if (fExtensions.has("GL_KHR_blend_equation_advanced") || |
+ fExtensions.has("GL_NV_blend_equation_advanced")) { |
+ if (NULL == fFunctions.fBlendBarrier) { |
+ RETURN_FALSE_INTERFACE |
+ } |
+ } |
+ |
if (fExtensions.has("GL_EXT_discard_framebuffer")) { |
// FIXME: Remove this once Chromium is updated to provide this function |
#if 0 |