Set stencil reference for non-stencil path, even if not needed

* We're not doing any stencil work, but we should still set the dynamic state
  properly as needed by the pipeline.
This commit is contained in:
baldurk committed 2022-04-15 11:47:49 +01:00
1 parent a4360c628e
commit cd0118ee9e
1 file changed
+2
+2
View File
@@ -2085,6 +2085,8 @@ void VulkanDebugManager::FillWithDiscardPattern(VkCommandBuffer cmd, DiscardType
}
else
{
ObjDisp(cmd)->CmdSetStencilReference(
Unwrap(cmd), VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, 0x00);
ObjDisp(cmd)->CmdDraw(Unwrap(cmd), 4, 1, 0, 0);
}