Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
VideoSoftware: Do not clear the depth buffer on EFB copy clears when …
…depth writing is disabled.
  • Loading branch information
neobrain committed Mar 14, 2013
1 parent e6c6053 commit 1f73651
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.cpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit 1f73651

Please sign in to comment.