From 1f73651a7a897a0741030cf107601f939699b537 Mon Sep 17 00:00:00 2001 From: NeoBrainX Date: Thu, 14 Mar 2013 14:08:36 +0100 Subject: [PATCH] VideoSoftware: Do not clear the depth buffer on EFB copy clears when depth writing is disabled. --- Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.cpp b/Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.cpp index 8fdc0425a4..77d87988c8 100644 --- a/Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.cpp +++ b/Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.cpp @@ -461,10 +461,11 @@ namespace EfbInterface SetPixelAlphaOnly(offset, color[ALP_C]); } - void SetDepth(u16 x, u16 y, u32 depth) - { - SetPixelDepth(GetDepthOffset(x, y), depth); - } + void SetDepth(u16 x, u16 y, u32 depth) + { + if (bpmem.zmode.updateenable) + SetPixelDepth(GetDepthOffset(x, y), depth); + } void GetColor(u16 x, u16 y, u8 *color) {