GS/HW: Don't leave ZBUF_TEX0 partially uninitialized

This commit is contained in:
Stenzek 2023-03-26 21:37:24 +10:00 committed by refractionpcsx2
parent 71edce43ca
commit ed90c8868f
1 changed files with 1 additions and 0 deletions

View File

@ -1841,6 +1841,7 @@ void GSRendererHW::Draw()
GIFRegTEX0 ZBUF_TEX0; GIFRegTEX0 ZBUF_TEX0;
if (!no_ds) if (!no_ds)
{ {
ZBUF_TEX0.U64 = 0;
ZBUF_TEX0.TBP0 = context->ZBUF.Block(); ZBUF_TEX0.TBP0 = context->ZBUF.Block();
ZBUF_TEX0.TBW = context->FRAME.FBW; ZBUF_TEX0.TBW = context->FRAME.FBW;
ZBUF_TEX0.PSM = context->ZBUF.PSM; ZBUF_TEX0.PSM = context->ZBUF.PSM;