Add ifdef to not use function pointer that we don't have yet on Chromium??
authorkrajcevski <krajcevski@google.com>
Wed, 11 Jun 2014 23:08:50 +0000 (16:08 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 11 Jun 2014 23:08:50 +0000 (16:08 -0700)
R=bsalomon@google.com, robertphillips@google.com

Author: krajcevski@google.com

Review URL: https://codereview.chromium.org/326423003

src/gpu/gl/GrGLInterface.cpp

index 5062d92..b81d9ce 100644 (file)
@@ -357,8 +357,11 @@ bool GrGLInterface::validate() const {
     if (kGL_GrGLStandard != fStandard ||
         (glVer >= GR_GL_VER(1,3)) ||
         fExtensions.has("GL_ARB_texture_compression")) {
-        if (NULL == fFunctions.fCompressedTexImage2D ||
-            NULL == fFunctions.fCompressedTexSubImage2D) {
+        if (NULL == fFunctions.fCompressedTexImage2D
+#if 0
+            || NULL == fFunctions.fCompressedTexSubImage2D
+#endif
+            ) {
             RETURN_FALSE_INTERFACE
         }
     }