diff options
author | 2011-09-01 13:28:16 +0000 | |
---|---|---|
committer | 2011-09-01 13:28:16 +0000 | |
commit | 56bfc5acc210987838744eece7383bc2f6b34915 (patch) | |
tree | 780b4bfb9c5d9c884416380448df017fe435cdd2 /gpu/src/GrGLIndexBuffer.cpp | |
parent | 9399cac0a14775f09735b2a59b83e65c462a728c (diff) |
Add optional per-gl-func client callback.
Review URL: http://codereview.appspot.com/4964055/
git-svn-id: http://skia.googlecode.com/svn/trunk@2207 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/src/GrGLIndexBuffer.cpp')
-rw-r--r-- | gpu/src/GrGLIndexBuffer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gpu/src/GrGLIndexBuffer.cpp b/gpu/src/GrGLIndexBuffer.cpp index 54ee78bc27..27915273fe 100644 --- a/gpu/src/GrGLIndexBuffer.cpp +++ b/gpu/src/GrGLIndexBuffer.cpp @@ -59,8 +59,10 @@ void* GrGLIndexBuffer::lock() { NULL, this->dynamic() ? GR_GL_DYNAMIC_DRAW : GR_GL_STATIC_DRAW)); - fLockPtr = GL_CALL(MapBuffer(GR_GL_ELEMENT_ARRAY_BUFFER, - GR_GL_WRITE_ONLY)); + GR_GL_CALL_RET(GPUGL->glInterface(), + fLockPtr, + MapBuffer(GR_GL_ELEMENT_ARRAY_BUFFER, + GR_GL_WRITE_ONLY)); return fLockPtr; } |