gfx3d: fix an ancient bug in matrix set position. fixes some mispositioned verts e.g. diddy kong racing

This commit is contained in:
zeromus 2009-06-24 00:40:40 +00:00
parent d489599bc6
commit 1b44158f75
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ void MatrixStackSetStackPosition (MatrixStack *stack, int pos)
if (stack->position < 0)
stack->position = 0;
else if (stack->position > stack->size)
stack->position = stack->size;
stack->position = stack->size+1;
}
void MatrixStackPushMatrix (MatrixStack *stack, const float *ptr)