Commit 805d281a by Jamie Madill Committed by Commit Bot

D3D11: Fix ClearBufferiv with STENCIL.

For some reason we were using the second GLint value passed into the method, when the spec says we should have a single clear value. Noticed when adding tests for lazy robust resource init (tests will be added in a subsequent patch). BUG=angleproject:2107 Change-Id: Iadfc5072796255072bfb71ff1918253045e29576 Reviewed-on: https://chromium-review.googlesource.com/675049 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarFrank Henigman <fjhenigman@chromium.org>
parent ea84f6ff
...@@ -167,7 +167,7 @@ gl::Error FramebufferD3D::clearBufferiv(const gl::Context *context, ...@@ -167,7 +167,7 @@ gl::Error FramebufferD3D::clearBufferiv(const gl::Context *context,
if (buffer == GL_STENCIL) if (buffer == GL_STENCIL)
{ {
clearParams.clearStencil = true; clearParams.clearStencil = true;
clearParams.stencilValue = values[1]; clearParams.stencilValue = values[0];
} }
return clearImpl(context, clearParams); return clearImpl(context, clearParams);
......
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