TINYGL: Always check if texture matrix need applying.

matrix_model_projection_updated is not set when texture matrix alone is
modified.
This commit is contained in:
Vincent Pelletier 2016-07-10 13:13:46 +00:00
parent 36c45b7f0b
commit f75767fc78

View file

@ -113,11 +113,11 @@ void glopBegin(GLContext *c, GLParam *p) {
c->matrix_model_projection_no_w_transform = 1;
}
// test if the texture matrix is not Identity
c->apply_texture_matrix = !c->matrix_stack_ptr[2]->isIdentity();
c->matrix_model_projection_updated = 0;
}
// test if the texture matrix is not Identity
c->apply_texture_matrix = !c->matrix_stack_ptr[2]->isIdentity();
// viewport
if (c->viewport.updated) {
gl_eval_viewport(c);