diff options
| author | NeoBrainX <NeoBrainX@gmail.com> | 2013-03-14 14:08:36 +0100 |
|---|---|---|
| committer | NeoBrainX <NeoBrainX@gmail.com> | 2013-03-14 23:59:52 +0100 |
| commit | 1f73651a7a897a0741030cf107601f939699b537 (patch) | |
| tree | ef4326a1b508db61173e6da058188c0fd3e3a941 /Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.cpp | |
| parent | e6c6053fcc83f604bb69191633438fb1e91f504b (diff) | |
VideoSoftware: Do not clear the depth buffer on EFB copy clears when depth writing is disabled.
Diffstat (limited to 'Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.cpp | 9 |
1 files 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) { |
