TINYGL: Fixed all the issues that arised after the refactoring.

This commit is contained in:
Stefano Musumeci 2014-06-02 13:32:52 +01:00
parent b1b498d336
commit 8b92e5ec83
4 changed files with 12 additions and 15 deletions

View file

@ -187,9 +187,9 @@ void glopTranslate(GLContext *c, GLParam *p) {
Matrix4 m = Matrix4::identity();
float x = p[1].f, y = p[2].f, z = p[3].f;
m.set(3,0,x);
m.set(3,1,y);
m.set(3,2,z);
m.set(0,3,x);
m.set(1,3,y);
m.set(2,3,z);
*c->matrix_stack_ptr[c->matrix_mode] *= m;