mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +00:00
Disable stencil buffer writes for the Vulkan Stencil overlay
Fixes rare problem of current draw not displaying when switching from Stencil overlay to None overlay and the current draw uses the stencil buffer contents
This commit is contained in:
@@ -1805,7 +1805,11 @@ ResourceId VulkanReplay::RenderOverlay(ResourceId texid, FloatVector clearCol, D
|
||||
if(overlay == DebugOverlay::Depth)
|
||||
ds->depthTestEnable = origDepthTest;
|
||||
else
|
||||
{
|
||||
ds->front.passOp = ds->front.failOp = ds->front.depthFailOp = VK_STENCIL_OP_KEEP;
|
||||
ds->back.passOp = ds->back.failOp = ds->back.depthFailOp = VK_STENCIL_OP_KEEP;
|
||||
ds->stencilTestEnable = origStencilTest;
|
||||
}
|
||||
pipeCreateInfo.renderPass = depthRP;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user