Index: src/gpu/gl/GrGLAssembleInterface.cpp |
diff --git a/src/gpu/gl/GrGLAssembleInterface.cpp b/src/gpu/gl/GrGLAssembleInterface.cpp |
index 2233005b6a01e63d7d83801ee1fc6f35b54441e2..e804dd605a4029b003e40e33afb59c49b67ff5ed 100644 |
--- a/src/gpu/gl/GrGLAssembleInterface.cpp |
+++ b/src/gpu/gl/GrGLAssembleInterface.cpp |
@@ -148,7 +148,9 @@ const GrGLInterface* GrGLAssembleGLInterface(void* ctx, GrGLGetProc get) { |
GET_PROC(DrawArraysIndirect); |
GET_PROC(DrawElementsIndirect); |
} |
- |
+ if (glVer >= GR_GL_VER(2,0)) { |
+ GET_PROC(DrawRangeElements); |
+ } |
GET_PROC(Enable); |
GET_PROC(EnableVertexAttribArray); |
GET_PROC(EndQuery); |
@@ -615,6 +617,9 @@ const GrGLInterface* GrGLAssembleGLESInterface(void* ctx, GrGLGetProc get) { |
} |
GET_PROC(DrawElements); |
+ if (version >= GR_GL_VER(3,0)) { |
+ GET_PROC(DrawRangeElements); |
+ } |
GET_PROC(Enable); |
GET_PROC(EnableVertexAttribArray); |
GET_PROC(Finish); |