From e56d8db6a3fdffbdd9b863c5692210b2a7b57abf Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sat, 26 Aug 2017 18:17:46 +0300 Subject: [PATCH] gl: Do not modify bound depth/stencil buffers bound to zcull memory - Fixes some rare cases where zcull always fails --- rpcs3/Emu/RSX/GL/GLGSRender.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rpcs3/Emu/RSX/GL/GLGSRender.cpp b/rpcs3/Emu/RSX/GL/GLGSRender.cpp index fd5bc2ca4b..56679938b3 100644 --- a/rpcs3/Emu/RSX/GL/GLGSRender.cpp +++ b/rpcs3/Emu/RSX/GL/GLGSRender.cpp @@ -873,10 +873,8 @@ bool GLGSRender::do_method(u32 cmd, u32 arg) } case NV4097_CLEAR_ZCULL_SURFACE: { - //TODO - init_buffers(true); - clear_surface(0x3); - + // NOP + // Clearing zcull memory does not modify depth/stencil buffers 'bound' to the zcull region return true; } case NV4097_TEXTURE_READ_SEMAPHORE_RELEASE: