readme crazymax: matrix stack "size" is 31 for 32 entry stack (silly, i know) so your overrun check was wrong.

This commit is contained in:
zeromus 2009-01-25 22:11:50 +00:00
parent 63605b9967
commit 0055130494
1 changed files with 1 additions and 1 deletions

View File

@ -407,7 +407,7 @@ void gfx3d_glPushMatrix()
//this command always works on both pos and vector when either pos or pos-vector are the current mtx mode
short mymode = (mode==1?2:mode);
if (mtxStack[mymode].position >= mtxStack[mymode].size)
if (mtxStack[mymode].position > mtxStack[mymode].size)
{
gxstat |= (1<<15);
T1WriteLong(MMU.MMU_MEM[ARMCPU_ARM9][0x40], 0x600, gxstat);