diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-01 13:07:29 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-01 13:07:29 +0000 |
commit | a34bb60c4e319f2289106d519544fe09d43eabd5 (patch) | |
tree | 63a3683c5d7cec2197cc4fa3f6301ab24f806001 /src/gpu/gl/mesa | |
parent | 58d69d846071ff9a84e879041f2f092006bfcd14 (diff) |
Add GL_ARB_invalidate_subdata functions to GrGLInterface.
BUG=skia:1541
R=egdaniel@google.com
Review URL: https://codereview.chromium.org/217503003
git-svn-id: http://skia.googlecode.com/svn/trunk@14004 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/mesa')
-rw-r--r-- | src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp b/src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp index 9cde81ce63..fd8be26fe9 100644 --- a/src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp +++ b/src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp @@ -224,6 +224,15 @@ const GrGLInterface* GrGLCreateMesaInterface() { GR_GL_GET_PROC_SUFFIX(PushGroupMarker, EXT); } + if (glVer >= GR_GL_VER(4,3) || extensions.has("GL_ARB_invalidate_subdata")) { + GR_GL_GET_PROC(InvalidateBufferData); + GR_GL_GET_PROC(InvalidateBufferSubData); + GR_GL_GET_PROC(InvalidateFramebuffer); + GR_GL_GET_PROC(InvalidateSubFramebuffer); + GR_GL_GET_PROC(InvalidateTexImage); + GR_GL_GET_PROC(InvalidateTexSubImage); + } + interface->fStandard = kGL_GrGLStandard; interface->fExtensions.swap(&extensions); |