Commit d43b0574 by Jamie Madill Committed by Commit Bot

Capture/Replay: Fix tool after parameter change.

'index' became 'indexPacked' for attribute locations. It also changed the type. Bug: angleproject:4598 Change-Id: I6393e09dd1d5c1a7c5d0e2ca8a67e4f7bbb05411 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2174263Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent f7d44736
......@@ -3180,15 +3180,17 @@ void FrameCapture::maybeCaptureClientData(const gl::Context *context, CallCaptur
case gl::EntryPoint::VertexAttribPointer:
{
// Get array location
GLuint index = call.params.getParam("index", ParamType::TGLuint, 0).value.GLuintVal;
gl::AttributeLocation attribLoc =
call.params.getParam("indexPacked", ParamType::TAttributeLocation, 0)
.value.AttributeLocationVal;
if (call.params.hasClientArrayData())
{
mClientVertexArrayMap[index] = static_cast<int>(mFrameCalls.size());
mClientVertexArrayMap[attribLoc.value] = static_cast<int>(mFrameCalls.size());
}
else
{
mClientVertexArrayMap[index] = -1;
mClientVertexArrayMap[attribLoc.value] = -1;
}
break;
}
......
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