diff options
author | 2011-07-01 15:21:59 +0000 | |
---|---|---|
committer | 2011-07-01 15:21:59 +0000 | |
commit | 9ae4429f9d3ab837ff9352261271974715cabb8a (patch) | |
tree | 7806bad5226d837fac6fc19ea4064ebcd40e5225 /gpu/src/GrGLIndexBuffer.cpp | |
parent | ee435122d7dcb9cd4be4524004b0de282c42848b (diff) |
Don't send NULL buffer data hint in chrome
Review URL: http://codereview.appspot.com/4657067/
git-svn-id: http://skia.googlecode.com/svn/trunk@1778 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/src/GrGLIndexBuffer.cpp')
-rw-r--r-- | gpu/src/GrGLIndexBuffer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gpu/src/GrGLIndexBuffer.cpp b/gpu/src/GrGLIndexBuffer.cpp index 4fb1e99ce4..1d3f89319d 100644 --- a/gpu/src/GrGLIndexBuffer.cpp +++ b/gpu/src/GrGLIndexBuffer.cpp @@ -106,7 +106,9 @@ bool GrGLIndexBuffer::updateData(const void* src, size_t srcSizeInBytes) { if (size() == srcSizeInBytes) { GR_GL(BufferData(GR_GL_ELEMENT_ARRAY_BUFFER, srcSizeInBytes, src, usage)); } else { +#if GR_GL_USE_BUFFER_DATA_NULL_HINT GR_GL(BufferData(GR_GL_ELEMENT_ARRAY_BUFFER, size(), NULL, usage)); +#endif GR_GL(BufferSubData(GR_GL_ELEMENT_ARRAY_BUFFER, 0, srcSizeInBytes, src)); } return true; |