diff options
author | 2016-08-29 09:18:39 -0700 | |
---|---|---|
committer | 2016-08-29 09:18:39 -0700 | |
commit | fc9527a0dfab9b4e2f6c1b8a7ff23a61a5e6b31f (patch) | |
tree | adf8fb1fce549578a101d5433e84c6ee8cbf9548 /src/gpu/gl/GrGLAssembleInterface.cpp | |
parent | 0ac1bece4852b3ddcc987a5a04ef7cdc63799b57 (diff) |
Add support for glDrawRangeElements
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2287003002
Review-Url: https://codereview.chromium.org/2287003002
Diffstat (limited to 'src/gpu/gl/GrGLAssembleInterface.cpp')
-rw-r--r-- | src/gpu/gl/GrGLAssembleInterface.cpp | 7 |
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); |