twn_textures.c: fix srcrect setting on atlas rebuild

This commit is contained in:
2024-09-23 11:51:18 +03:00
parent f705546644
commit 0ef8a6233f
2 changed files with 13 additions and 7 deletions

View File

@ -94,9 +94,9 @@ static void ingame_tick(struct state *state) {
(t_fvec3){ (float)x, d0, (float)y },
(t_fvec3){ (float)x + 1, d1, (float)y },
(t_fvec3){ (float)x, d3, (float)y - 1 },
(t_shvec2){ 0, 768 },
(t_shvec2){ 1024, 768 },
(t_shvec2){ 1024, 0 });
(t_shvec2){ 1024, 0 },
(t_shvec2){ 0, 768 });
unfurl_triangle("/assets/grass.gif",
(t_fvec3){ (float)x + 1, d1, (float)y },