Skip to content

Commit 205a9a2

Browse files
hoyeonlim351Angle LUCI CQ
authored andcommitted
FrameCapture: set starting binding GL_ELEMENT_ARRAY_BUFFER
set starting binding GL_ELEMENT_ARRAY_BUFFER of vertex array object. Bug: b/446464003 Change-Id: I64f05694f66909fba81dc454df871d4cd49c20bf Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/6968196 Reviewed-by: Cody Northrop <cnorthrop@google.com> Commit-Queue: Cody Northrop <cnorthrop@google.com> Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
1 parent 453c247 commit 205a9a2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/libANGLE/capture/FrameCapture.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4575,6 +4575,12 @@ void CaptureMidExecutionSetup(const gl::Context *context,
45754575
CallResetMap &resetCalls = resetHelper.getResetCalls();
45764576
Capture(&resetCalls[angle::EntryPoint::GLBindVertexArray],
45774577
vertexArrayFuncs.bindVertexArray(replayState, true, currentVertexArray->id()));
4578+
gl::Buffer *elementArrayBuffer = currentVertexArray->getElementArrayBuffer();
4579+
if (elementArrayBuffer)
4580+
{
4581+
resetHelper.setStartingBufferBinding(gl::BufferBinding::ElementArray,
4582+
currentVertexArray->getElementArrayBuffer()->id());
4583+
}
45784584

45794585
// Capture indexed buffer bindings.
45804586
const gl::BufferVector &uniformIndexedBuffers =

0 commit comments

Comments
 (0)