Commit 21edf3db by Yuly Novikov Committed by Commit Bot

Fix stencil mask check in Framebuffer::partialClearNeedsInit

Bug: 850060 Change-Id: I9672e6c93e92941e61763d77180bef1548f5fbde Reviewed-on: https://chromium-review.googlesource.com/1148897Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Yuly Novikov <ynovikov@chromium.org>
parent ddd6e874
......@@ -1353,8 +1353,8 @@ bool Framebuffer::partialClearNeedsInit(const Context *context,
}
const auto &depthStencil = glState.getDepthStencilState();
ASSERT(depthStencil.stencilBackMask == depthStencil.stencilMask);
if (stencil && depthStencil.stencilMask != depthStencil.stencilWritemask)
if (stencil && (depthStencil.stencilMask != depthStencil.stencilWritemask ||
depthStencil.stencilBackMask != depthStencil.stencilBackWritemask))
{
return true;
}
......
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