1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-25 22:09:35 +00:00

Fix z coordinate calculation in TexrectDrawer::addRect()

Fixed #1989, Printf debug statements broken in LLE in Multiple Debug/Prototype games.
This commit is contained in:
Sergey Lipskiy 2019-02-08 19:43:16 +07:00
parent f7824a37a0
commit 0e04b3f902

View File

@ -228,9 +228,7 @@ bool TexrectDrawer::addRect()
m_pBuffer = frameBufferList().getCurrent();
m_otherMode = gDP.otherMode._u64;
m_mux = gDP.combine.mux;
m_Z = (gDP.otherMode.depthSource == G_ZS_PRIM) ?
(gDP.primDepth.z - gSP.viewport.vtrans[2]) / gSP.viewport.vscale[2] :
gSP.viewport.nearz;
m_Z = (gDP.otherMode.depthSource == G_ZS_PRIM) ? gDP.primDepth.z : 0.0f;
m_scissor = gDP.scissor;
m_ulx = pRect[0].x;