mirror of https://github.com/PCSX2/pcsx2.git
GS/HW: Don't leave ZBUF_TEX0 partially uninitialized
This commit is contained in:
parent
71edce43ca
commit
ed90c8868f
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue