From 087f856816edc45b501384fa909cbf100e74492f Mon Sep 17 00:00:00 2001 From: Zus Date: Sat, 29 Jan 2022 22:58:46 -0500 Subject: [PATCH] Read the texture coords properly while loading MD3 model --- Quake/gl_mesh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Quake/gl_mesh.c b/Quake/gl_mesh.c index f16cdc1f..ae5f7c86 100644 --- a/Quake/gl_mesh.c +++ b/Quake/gl_mesh.c @@ -692,8 +692,8 @@ void Mod_LoadMD3Model (qmodel_t *mod, void *buffer) for (j = 0; j < osurf->numverts; j++) { poutst[j].vertindex = j; //how is this useful? - poutst[j].st[0] = pinst->s; - poutst[j].st[1] = pinst->t; + poutst[j].st[0] = pinst[j].s; + poutst[j].st[1] = pinst[j].t; } } GLMesh_LoadVertexBuffer (mod, outhdr);