From ed7354fa1bdeeff66e9905db1bbcaec097b639e9 Mon Sep 17 00:00:00 2001 From: Samuliak Date: Wed, 14 Aug 2024 21:23:18 +0200 Subject: [PATCH] reset depth bias --- src/Cafe/HW/Latte/Renderer/Metal/MetalRenderer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Cafe/HW/Latte/Renderer/Metal/MetalRenderer.cpp b/src/Cafe/HW/Latte/Renderer/Metal/MetalRenderer.cpp index 224e908d..f9427b54 100644 --- a/src/Cafe/HW/Latte/Renderer/Metal/MetalRenderer.cpp +++ b/src/Cafe/HW/Latte/Renderer/Metal/MetalRenderer.cpp @@ -752,6 +752,10 @@ void MetalRenderer::draw_execute(uint32 baseVertex, uint32 baseInstance, uint32 renderCommandEncoder->setDepthBias(frontOffset, frontScale, offsetClamp); } + else + { + renderCommandEncoder->setDepthBias(0.0f, 0.0f, 0.0f); + } // todo - how does culling behave with rects? // right now we just assume that their winding is always CW