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

Rename parameter in gSPBranchLessW

This commit is contained in:
Sergey Lipskiy 2016-12-20 21:36:31 +07:00
parent ae67daca9f
commit a7df7c13ac
2 changed files with 5 additions and 5 deletions

View File

@ -1293,7 +1293,7 @@ void gSPBranchLessZ( u32 branchdl, u32 vtx, u32 zval )
#endif #endif
} }
void gSPBranchLessW( u32 branchdl, u32 vtx, u32 zval ) void gSPBranchLessW( u32 branchdl, u32 vtx, u32 wval )
{ {
const u32 address = RSP_SegmentToPhysical( branchdl ); const u32 address = RSP_SegmentToPhysical( branchdl );
@ -1301,18 +1301,18 @@ void gSPBranchLessW( u32 branchdl, u32 vtx, u32 zval )
#ifdef DEBUG #ifdef DEBUG
DebugMsg( DEBUG_HIGH | DEBUG_ERROR, "// Specified display list at invalid address\n" ); DebugMsg( DEBUG_HIGH | DEBUG_ERROR, "// Specified display list at invalid address\n" );
DebugMsg( DEBUG_HIGH | DEBUG_HANDLED, "gSPBranchLessZ( 0x%08X, %i, %i );\n", DebugMsg( DEBUG_HIGH | DEBUG_HANDLED, "gSPBranchLessZ( 0x%08X, %i, %i );\n",
branchdl, vtx, zval ); branchdl, vtx, wval );
#endif #endif
return; return;
} }
SPVertex & v = video().getRender().getVertex((vtx & 0x1f)); SPVertex & v = video().getRender().getVertex((vtx & 0x1f));
if (v.w < (float)zval) if (v.w < (float)wval)
RSP.PC[RSP.PCi] = address; RSP.PC[RSP.PCi] = address;
#ifdef DEBUG #ifdef DEBUG
DebugMsg( DEBUG_HIGH | DEBUG_HANDLED, "gSPBranchLessZ( 0x%08X, %i, %i );\n", DebugMsg( DEBUG_HIGH | DEBUG_HANDLED, "gSPBranchLessZ( 0x%08X, %i, %i );\n",
branchdl, vtx, zval ); branchdl, vtx, wval );
#endif #endif
} }

View File

@ -156,7 +156,7 @@ void gSPCBFDVertex( u32 v, u32 n, u32 v0 );
void gSPDisplayList( u32 dl ); void gSPDisplayList( u32 dl );
void gSPBranchList( u32 dl ); void gSPBranchList( u32 dl );
void gSPBranchLessZ( u32 branchdl, u32 vtx, u32 zval ); void gSPBranchLessZ( u32 branchdl, u32 vtx, u32 zval );
void gSPBranchLessW( u32 branchdl, u32 vtx, u32 zval ); void gSPBranchLessW( u32 branchdl, u32 vtx, u32 wval );
void gSPDlistCount(u32 count, u32 v); void gSPDlistCount(u32 count, u32 v);
void gSPSprite2DBase(u32 _base ); void gSPSprite2DBase(u32 _base );
void gSPDMATriangles( u32 tris, u32 n ); void gSPDMATriangles( u32 tris, u32 n );