Commit d488568a by Cody Northrop Committed by Commit Bot

Capture/Replay: Don't capture unused default uniforms in MEC

Test: MEC capture of COD:Mobile Bug: b/164426913 Bug: angleproject:4048 Change-Id: I7f47c8828d57dfcc14bee5994d98c7df5f6a9a71 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2360046 Commit-Queue: Cody Northrop <cnorthrop@google.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent d63bca58
...@@ -1741,6 +1741,10 @@ void CaptureUpdateUniformValues(const gl::State &replayState, ...@@ -1741,6 +1741,10 @@ void CaptureUpdateUniformValues(const gl::State &replayState,
// For arrayed uniforms, we'll need to increment a read location // For arrayed uniforms, we'll need to increment a read location
gl::UniformLocation readLoc = uniformLoc; gl::UniformLocation readLoc = uniformLoc;
// If the uniform is unused, just continue
if (readLoc.value == -1)
continue;
switch (typeInfo->componentType) switch (typeInfo->componentType)
{ {
case GL_FLOAT: case GL_FLOAT:
......
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