From 4431972ff65298e8f2d90f06233fb35092424291 Mon Sep 17 00:00:00 2001 From: Shpoike Date: Fri, 3 Feb 2023 20:14:34 +0000 Subject: [PATCH] Fix bad texture coord clamping on mdl export. --- iqm/iqm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iqm/iqm.cpp b/iqm/iqm.cpp index dc70c5fb5..d59d71844 100644 --- a/iqm/iqm.cpp +++ b/iqm/iqm.cpp @@ -5260,7 +5260,7 @@ static bool writemdl(const char *filename, bool md16) s -= 0.5; //glquake has some annoying half-texel offset thing. t -= 0.5; s = bound(0, s, skinwidth); - t = bound(0, t, skinwidth); + t = bound(0, t, skinheight); f->putlil((uint)(0?32:0)); //onseam. no verts are ever onseam for us, as we don't do that nonsense here. f->putlil((int)s); //mdl texcoords are ints, in texels. which sucks, but what can you do... f->putlil((int)t);