don't adjust texture coords of nonexistant gpatch

This commit is contained in:
pastel 2024-06-01 14:40:44 -05:00
parent a75fbd229e
commit c0c1b8de90

View file

@ -1154,6 +1154,9 @@ static void adjustTextureCoords(model_t *model, patch_t *patch)
int i;
GLPatch_t *gpatch = ((GLPatch_t *)patch->hardware);
if (!gpatch)
return;
for (i = 0; i < model->numMeshes; i++)
{
int j;