Index: src/gpu/gl/GrGLInterface.cpp |
diff --git a/src/gpu/gl/GrGLInterface.cpp b/src/gpu/gl/GrGLInterface.cpp |
index 063de56aeb5cae826775736fbdf80b50c30545b7..92213d353aa55606d5450b73f9cbcf38f0cb6fa3 100644 |
--- a/src/gpu/gl/GrGLInterface.cpp |
+++ b/src/gpu/gl/GrGLInterface.cpp |
@@ -264,6 +264,12 @@ bool GrGLInterface::validate() const { |
RETURN_FALSE_INTERFACE |
} |
} |
+ if (glVer >= GR_GL_VER(1,2)) { |
+ if (NULL == fFunctions.fTexImage3D || |
+ NULL == fFunctions.fTexSubImage3D) { |
+ RETURN_FALSE_INTERFACE |
+ } |
+ } |
} |
// optional function on desktop before 1.3 |