From d187c8b08d1996fe9d20781e6951d6a54d2e4317 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 26 Dec 2020 00:08:31 +1000 Subject: [PATCH] GPU/HW: Fix a potential case where depth isn't cleared on viewport change --- src/core/gpu_hw.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/core/gpu_hw.cpp b/src/core/gpu_hw.cpp index 98277d5a6..e57c47631 100644 --- a/src/core/gpu_hw.cpp +++ b/src/core/gpu_hw.cpp @@ -343,7 +343,6 @@ void GPU_HW::SetBatchDepthBuffer(bool enabled) } m_batch.use_depth_buffer = enabled; - m_last_depth_z = 1.0f; } void GPU_HW::CheckForDepthClear(const BatchVertex* vertices, u32 num_vertices)