1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Force depth test when depthSource == G_ZS_PRIM.

This commit is contained in:
Sergey Lipskiy 2014-10-23 19:51:35 +07:00
parent 23348b474d
commit 642038a6fe

View File

@ -527,7 +527,7 @@ void OGLRender::_updateStates() const
glDisable( GL_DEPTH_TEST );
glDepthMask( FALSE );
} else {
if (gSP.geometryMode & G_ZBUFFER)
if ((gSP.geometryMode & G_ZBUFFER) || gDP.otherMode.depthSource == G_ZS_PRIM)
glEnable( GL_DEPTH_TEST );
else
glDisable( GL_DEPTH_TEST );