check me crazymax: it is a shame to have to memset the fifo so often. would it be sufficient just to reset the tail?

This commit is contained in:
zeromus 2009-01-26 07:02:50 +00:00
parent 0055130494
commit 1d71a7d4b7
1 changed files with 2 additions and 1 deletions

View File

@ -142,7 +142,8 @@ void GFX_FIFOclear()
u32 gxstat = T1ReadLong(MMU.MMU_MEM[ARMCPU_ARM9][0x40], 0x600);
gxstat &= 0x0000FFFF;
memset(&gxFIFO, 0, sizeof(GFX_FIFO));
//memset(&gxFIFO, 0, sizeof(GFX_FIFO));
gxFIFO.tail = 0;
gxstat |= 0x06000000;
gxstat |= 0x00000002; // this is hack
T1WriteLong(MMU.MMU_MEM[ARMCPU_ARM9][0x40], 0x600, gxstat);