| Index: src/gpu/gl/GrGLInterface.cpp
|
| diff --git a/src/gpu/gl/GrGLInterface.cpp b/src/gpu/gl/GrGLInterface.cpp
|
| index ada6d8bc298ce5c0411ac27222fa0b1c46705090..c3fc8a8e8138db14d900f237edf22072d1233ef5 100644
|
| --- a/src/gpu/gl/GrGLInterface.cpp
|
| +++ b/src/gpu/gl/GrGLInterface.cpp
|
| @@ -793,5 +793,15 @@ bool GrGLInterface::validate() const {
|
| }
|
| }
|
|
|
| + if (kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(2,0)) {
|
| + if (nullptr == fFunctions.fDrawRangeElements) {
|
| + RETURN_FALSE_INTERFACE;
|
| + }
|
| + } else if (kGLES_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,0)) {
|
| + if (nullptr == fFunctions.fDrawRangeElements) {
|
| + RETURN_FALSE_INTERFACE;
|
| + }
|
| + }
|
| +
|
| return true;
|
| }
|
|
|