diff options
Diffstat (limited to 'src/gpu/gl/GrGLInterface.cpp')
-rw-r--r-- | src/gpu/gl/GrGLInterface.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLInterface.cpp b/src/gpu/gl/GrGLInterface.cpp index 925f081b34..c09efae2b8 100644 --- a/src/gpu/gl/GrGLInterface.cpp +++ b/src/gpu/gl/GrGLInterface.cpp @@ -416,6 +416,13 @@ bool GrGLInterface::validate() const { } } + // glVertexAttribIPointer was added in version 3.0 of both desktop and ES. + if (glVer >= GR_GL_VER(3, 0)) { + if (NULL == fFunctions.fVertexAttribIPointer) { + RETURN_FALSE_INTERFACE + } + } + if (kGL_GrGLStandard == fStandard) { if (glVer >= GR_GL_VER(3, 0) || fExtensions.has("GL_ARB_vertex_array_object")) { if (nullptr == fFunctions.fBindVertexArray || |