mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-23 21:03:02 +00:00
don't adjust texture coords of nonexistant gpatch
This commit is contained in:
parent
a75fbd229e
commit
c0c1b8de90
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue