Commit b390d8b0 by Cody Northrop Committed by Commit Bot

Capture/Replay: Minor fixes for MEC

Detected when recapturing Temple Run and Candy Crush. Each of these apps has updated recently. Test: angle_perftests --gtest_filter="*Trace*" Bug: angleproject:4845 Change-Id: Id0e8d362661d97d7b8e60b3afb0a3a989b6a6771 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2441850Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Cody Northrop <cnorthrop@google.com>
parent 64eb64a0
......@@ -1938,7 +1938,7 @@ void CaptureVertexArrayData(std::vector<CallCapture> *setupCalls,
{
// Each attribute can pull from a separate buffer, so check the binding
gl::Buffer *buffer = binding.getBuffer().get();
if (buffer != replayState->getArrayBuffer())
if (buffer && buffer != replayState->getArrayBuffer())
{
replayState->setBufferBinding(context, gl::BufferBinding::Array, buffer);
......
......@@ -664,10 +664,7 @@ void CaptureShaderSource_length(const State &glState,
if (!length)
return;
for (GLsizei index = 0; index < count; ++index)
{
CaptureMemory(&length[index], sizeof(GLint), paramCapture);
}
CaptureMemory(length, count * sizeof(GLint), paramCapture);
}
void CaptureTexImage2D_pixels(const State &glState,
......
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