From 45f3f5ef76757a74e41655ea397f39157808e684 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 6 Oct 2020 18:40:53 +0100 Subject: [PATCH] Don't overwrite a known failed depth test with a suspected pass * We only use the manual depth test to detect failures mid-modification --- renderdoc/driver/vulkan/vk_pixelhistory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/renderdoc/driver/vulkan/vk_pixelhistory.cpp b/renderdoc/driver/vulkan/vk_pixelhistory.cpp index 6e66fbcbe..4b56050e4 100644 --- a/renderdoc/driver/vulkan/vk_pixelhistory.cpp +++ b/renderdoc/driver/vulkan/vk_pixelhistory.cpp @@ -3582,7 +3582,8 @@ rdcarray VulkanReplay::PixelHistory(rdcarray even else if(flags == DepthTest_GreaterEqual) passed = (shadDepth >= history[h].preMod.depth); - history[h].depthTestFailed = !passed; + if(!passed) + history[h].depthTestFailed = true; } } }