Fix sprite textures in models

This commit is contained in:
Jaime Ita Passos 2020-11-22 17:10:10 -03:00
parent 9ab3acae2d
commit 152c540c1e
1 changed files with 2 additions and 2 deletions

View File

@ -1470,7 +1470,7 @@ boolean HWR_DrawModel(gl_vissprite_t *spr)
// Instead of the != operator, memcmp is used to avoid a compiler warning.
if (memcmp(&(hwrPatch->max_s), &(md2->model->max_s), sizeof(md2->model->max_s)) != 0 ||
memcmp(&(hwrPatch->max_t), &(md2->model->max_t), sizeof(md2->model->max_t)) != 0)
adjustTextureCoords(md2->model, gpatch);
adjustTextureCoords(md2->model, spr->gpatch);
HWR_GetMappedPatch(spr->gpatch, spr->colormap);
}