old gxfifo: fix bug which broke galactik football

This commit is contained in:
zeromus 2009-07-19 07:07:58 +00:00
parent 7a2b970aff
commit 119deba104
1 changed files with 3 additions and 7 deletions

View File

@ -2770,22 +2770,18 @@ static void NOPARAMS()
void gfx3d_sendCommandToFIFO(u32 val)
{
//friendly reminder: be careful to handle the case where several unpacked noparams commands get sent in a row!
if (clCmd == 0)
{
clCmd = val;
NOPARAMS();
return;
}
#ifdef _3D_LOG
INFO("GFX FIFO: Send GFX 3D cmd 0x%02X to FIFO (0x%08X)\n", clCmd & 0xFF, val);
#endif
NOPARAMS();
if (clCmd == 0)
{
clCmd = val;
return;
}
switch (clCmd & 0xFF)
{
case 0x10: // MTX_MODE - Set Matrix Mode (W)