From 08d6492dc63a5081267bd57006100d745ec56d90 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 24 Aug 2026 21:52:31 +0100 Subject: [PATCH] Fix epsilon check being too strict for equality depth checks --- renderdoc/api/replay/data_types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderdoc/api/replay/data_types.h b/renderdoc/api/replay/data_types.h index baba98e3d..619b6a8a3 100644 --- a/renderdoc/api/replay/data_types.h +++ b/renderdoc/api/replay/data_types.h @@ -3201,12 +3201,12 @@ This is primarily used internally and should not be needed to be called external if(depthBits == 24) { shadDepth = float(uint32_t(float(shadDepth * 0xffffff))) / float(0xffffff); - eps = float(1.0f) / float(0xffffff); + eps = float(1.5f) / float(0xffffff); } else if(depthBits == 16) { shadDepth = float(uint32_t(float(shadDepth * 0xffff))) / float(0xffff); - eps = float(1.0f) / float(0xffff); + eps = float(1.5f) / float(0xffff); } bool passed = true;