Index: src/gpu/gl/GrGLInterface.cpp |
diff --git a/src/gpu/gl/GrGLInterface.cpp b/src/gpu/gl/GrGLInterface.cpp |
index fafd17cd0bc1825e16d17b244ee3629bd3073674..0c48fc157ff9b1f8502f6cbe23b67fea42dd72b0 100644 |
--- a/src/gpu/gl/GrGLInterface.cpp |
+++ b/src/gpu/gl/GrGLInterface.cpp |
@@ -739,5 +739,12 @@ bool GrGLInterface::validate() const { |
} |
} |
+ if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base")) { |
+ if (nullptr == fFunctions.fCreateImage || |
+ nullptr == fFunctions.fDestroyImage) { |
+ RETURN_FALSE_INTERFACE |
+ } |
+ } |
+ |
return true; |
} |