TINYGL: Fixed a few mistakes during the refactoring.

This commit is contained in:
Stefano Musumeci 2014-05-30 00:01:54 +01:00
parent c1040a9cdf
commit b7853b48f8
7 changed files with 135 additions and 87 deletions

View file

@ -46,10 +46,10 @@ void tglGetFloatv(int pname, float *v) {
mnr++;
case TGL_MODELVIEW_MATRIX: {
for (i = 0; i < 4; i++) {
*v++ = c->matrix_stack_ptr[mnr]->get(0,i);
*v++ = c->matrix_stack_ptr[mnr]->get(1,i);
*v++ = c->matrix_stack_ptr[mnr]->get(2,i);
*v++ = c->matrix_stack_ptr[mnr]->get(3,i);
*v++ = c->matrix_stack_ptr[mnr]->get(i,0);
*v++ = c->matrix_stack_ptr[mnr]->get(i,1);
*v++ = c->matrix_stack_ptr[mnr]->get(i,2);
*v++ = c->matrix_stack_ptr[mnr]->get(i,3);
}
}
break;