textri glitch. Textured triangle disappears. #458

This commit is contained in:
BADIM-PC\Vadim 2017-12-11 22:05:49 +03:00
parent b25ed2a188
commit 80dcda8c2a
1 changed files with 1 additions and 2 deletions

View File

@ -912,8 +912,7 @@ static void ticTexLine(tic_mem* memory, TexVert *v0, TexVert *v1)
float dy = bot->y - top->y; float dy = bot->y - top->y;
if ((s32)dy == 0) return; if ((s32)dy == 0) return;
if ((s32)dy > TIC80_HEIGHT) return; // reject large polys
float step_x = (bot->x - top->x) / dy; float step_x = (bot->x - top->x) / dy;
float step_u = (bot->u - top->u) / dy; float step_u = (bot->u - top->u) / dy;
float step_v = (bot->v - top->v) / dy; float step_v = (bot->v - top->v) / dy;