mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-14 17:01:07 +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;
|
int i;
|
||||||
GLPatch_t *gpatch = ((GLPatch_t *)patch->hardware);
|
GLPatch_t *gpatch = ((GLPatch_t *)patch->hardware);
|
||||||
|
|
||||||
|
if (!gpatch)
|
||||||
|
return;
|
||||||
|
|
||||||
for (i = 0; i < model->numMeshes; i++)
|
for (i = 0; i < model->numMeshes; i++)
|
||||||
{
|
{
|
||||||
int j;
|
int j;
|
||||||
|
|
Loading…
Reference in a new issue