Index: src/gpu/gl/GrGLInterface.cpp |
diff --git a/src/gpu/gl/GrGLInterface.cpp b/src/gpu/gl/GrGLInterface.cpp |
index 9cd7e6864748f3e69f1100d7272a36845b69337c..4e6ad0861168eadf7a998042c95b06f4b6e04ac8 100644 |
--- a/src/gpu/gl/GrGLInterface.cpp |
+++ b/src/gpu/gl/GrGLInterface.cpp |
@@ -414,10 +414,16 @@ bool GrGLInterface::validate() const { |
RETURN_FALSE_INTERFACE; |
} |
} |
+ if (glVer >= GR_GL_VER(4,3)) { |
+ if (nullptr == fFunctions.fTexBufferRange) { |
+ RETURN_FALSE_INTERFACE; |
+ } |
+ } |
} else { |
if (glVer >= GR_GL_VER(3,2) || fExtensions.has("GL_OES_texture_buffer") || |
fExtensions.has("GL_EXT_texture_buffer")) { |
- if (nullptr == fFunctions.fTexBuffer) { |
+ if (nullptr == fFunctions.fTexBuffer || |
+ nullptr == fFunctions.fTexBufferRange) { |
RETURN_FALSE_INTERFACE; |
} |
} |