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:
parent
63605b9967
commit
0055130494
|
@ -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
|
//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);
|
short mymode = (mode==1?2:mode);
|
||||||
|
|
||||||
if (mtxStack[mymode].position >= mtxStack[mymode].size)
|
if (mtxStack[mymode].position > mtxStack[mymode].size)
|
||||||
{
|
{
|
||||||
gxstat |= (1<<15);
|
gxstat |= (1<<15);
|
||||||
T1WriteLong(MMU.MMU_MEM[ARMCPU_ARM9][0x40], 0x600, gxstat);
|
T1WriteLong(MMU.MMU_MEM[ARMCPU_ARM9][0x40], 0x600, gxstat);
|
||||||
|
|
Loading…
Reference in New Issue