From 80dcda8c2a9188f49e7c4dc69ba72da7455b98a5 Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Mon, 11 Dec 2017 22:05:49 +0300 Subject: [PATCH] textri glitch. Textured triangle disappears. #458 --- src/tic.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tic.c b/src/tic.c index b3a7651..74dba45 100644 --- a/src/tic.c +++ b/src/tic.c @@ -912,8 +912,7 @@ static void ticTexLine(tic_mem* memory, TexVert *v0, TexVert *v1) float dy = bot->y - top->y; if ((s32)dy == 0) return; - if ((s32)dy > TIC80_HEIGHT) return; // reject large polys - + float step_x = (bot->x - top->x) / dy; float step_u = (bot->u - top->u) / dy; float step_v = (bot->v - top->v) / dy;