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/GrGLInterface.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/GrGLInterface.cpp')
-rw-r--r-- | src/gpu/gl/GrGLInterface.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLInterface.cpp b/src/gpu/gl/GrGLInterface.cpp index ada6d8bc29..c3fc8a8e81 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; } |