mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
PixelShaderGen: Don't disable depth texture emulation if z writing is disabled (this is what VideoSoftware is doing).
This commit is contained in:
parent
e979b2d4a2
commit
876eee5e60
5 changed files with 12 additions and 13 deletions
|
@ -125,7 +125,7 @@ inline void Draw(s32 x, s32 y, s32 xi, s32 yi)
|
|||
if (z < 0 || z > 0x00ffffff)
|
||||
return;
|
||||
|
||||
if (bpmem.zcontrol.zcomploc && bpmem.zmode.testenable)
|
||||
if (bpmem.zcontrol.early_ztest && bpmem.zmode.testenable)
|
||||
{
|
||||
// early z
|
||||
if (!EfbInterface::ZCompare(x, y, z))
|
||||
|
|
|
@ -784,7 +784,7 @@ void Tev::Draw()
|
|||
output[BLU_C] = (output[BLU_C] * invFog + fogInt * bpmem.fog.color.b) >> 8;
|
||||
}
|
||||
|
||||
if (!bpmem.zcontrol.zcomploc && bpmem.zmode.testenable)
|
||||
if (!bpmem.zcontrol.early_ztest && bpmem.zmode.testenable)
|
||||
{
|
||||
if (!EfbInterface::ZCompare(Position[0], Position[1], Position[2]))
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue