Commit 94d0e3e8 by Corentin Wallez Committed by Jamie Madill

IndexDataManager: always add the offset when streaming

When the static buffer has just been invalidated we stream from the buffer directly for some time. This streaming forgot to offset the starting point, causing a bug. BUG=510585 Change-Id: I8321e462841eb0bd7ed97ab78197914cbdb68c55 Reviewed-on: https://chromium-review.googlesource.com/287525Reviewed-by: 's avatarHendrik Wagenaar <hendrikw@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarJamie Madill <jmadill@chromium.org>
parent bc4acb4e
...@@ -204,7 +204,7 @@ gl::Error IndexDataManager::prepareIndexData(GLenum srcType, GLsizei count, gl:: ...@@ -204,7 +204,7 @@ gl::Error IndexDataManager::prepareIndexData(GLenum srcType, GLsizei count, gl::
} }
ASSERT(bufferData != nullptr); ASSERT(bufferData != nullptr);
error = streamIndexData(bufferData, count, srcType, dstType, translated); error = streamIndexData(bufferData + offset, count, srcType, dstType, translated);
if (error.isError()) if (error.isError())
{ {
return error; return error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment