aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLAssembleInterface.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-08-29 09:18:39 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-29 09:18:39 -0700
commitfc9527a0dfab9b4e2f6c1b8a7ff23a61a5e6b31f (patch)
treeadf8fb1fce549578a101d5433e84c6ee8cbf9548 /src/gpu/gl/GrGLAssembleInterface.cpp
parent0ac1bece4852b3ddcc987a5a04ef7cdc63799b57 (diff)
Add support for glDrawRangeElements
Diffstat (limited to 'src/gpu/gl/GrGLAssembleInterface.cpp')
-rw-r--r--src/gpu/gl/GrGLAssembleInterface.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLAssembleInterface.cpp b/src/gpu/gl/GrGLAssembleInterface.cpp
index 2233005b6a..e804dd605a 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);