gfx3d: fix an ancient bug in matrix set position. fixes some mispositioned verts e.g. diddy kong racing
This commit is contained in:
parent
d489599bc6
commit
1b44158f75
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue