diff options
author | 2011-03-21 21:10:33 +0000 | |
---|---|---|
committer | 2011-03-21 21:10:33 +0000 | |
commit | c312bf9935ef56a44e277bbd6d28b4f5f35fc19a (patch) | |
tree | c3709a418fbc8dfc250eae27dfbd48e7ef3e1a41 /gpu/src/GrGLIndexBuffer.cpp | |
parent | 160f2c0e1724003767dbbea05bc8046ac5dd78d4 (diff) |
Remove old GR_* macros for GL extensions in favor of GrGLDefines.h
Review URL: http://codereview.appspot.com/4275061/
git-svn-id: http://skia.googlecode.com/svn/trunk@972 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/src/GrGLIndexBuffer.cpp')
-rw-r--r-- | gpu/src/GrGLIndexBuffer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gpu/src/GrGLIndexBuffer.cpp b/gpu/src/GrGLIndexBuffer.cpp index a272d271df..9d73419376 100644 --- a/gpu/src/GrGLIndexBuffer.cpp +++ b/gpu/src/GrGLIndexBuffer.cpp @@ -57,7 +57,7 @@ void* GrGLIndexBuffer::lock() { // Let driver know it can discard the old data GR_GL(BufferData(GR_GL_ELEMENT_ARRAY_BUFFER, size(), NULL, dynamic() ? GR_GL_DYNAMIC_DRAW : GR_GL_STATIC_DRAW)); - fLockPtr = GR_GL(MapBuffer(GR_GL_ELEMENT_ARRAY_BUFFER, GR_WRITE_ONLY)); + fLockPtr = GR_GL(MapBuffer(GR_GL_ELEMENT_ARRAY_BUFFER, GR_GL_WRITE_ONLY)); return fLockPtr; } @@ -85,7 +85,7 @@ bool GrGLIndexBuffer::isLocked() const { bind(); GrGLint mapped; GR_GL(GetBufferParameteriv(GR_GL_ELEMENT_ARRAY_BUFFER, - GR_BUFFER_MAPPED, &mapped)); + GR_GL_BUFFER_MAPPED, &mapped)); GrAssert(!!mapped == !!fLockPtr); } #endif |