TINYGL: fixing T texture cordinate

This commit is contained in:
Pawel Kolodziejski 2014-07-05 11:06:34 +02:00
parent e6924e894c
commit 5d65e40e1f
2 changed files with 2 additions and 4 deletions

View file

@ -42,7 +42,7 @@ void gl_transform_to_viewport(GLContext *c, GLVertex *v) {
// texture
if (c->texture_2d_enabled) {
v->zp.s = (int)(v->tex_coord.X * (ZB_POINT_S_MAX - ZB_POINT_S_MIN) + ZB_POINT_S_MIN);
v->zp.t = (int)(v->tex_coord.Y * (ZB_POINT_S_MAX - ZB_POINT_S_MIN) + ZB_POINT_S_MIN);
v->zp.t = (int)(v->tex_coord.Y * (ZB_POINT_T_MAX - ZB_POINT_T_MIN) + ZB_POINT_T_MIN);
}
}