Fix for incorrect texture id (#26)

This commit is contained in:
Ryan Baldwin 2022-07-04 22:09:50 -07:00
parent fdbb4c3799
commit 9ae97d497f
3 changed files with 1 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View file

@ -1607,14 +1607,13 @@ int GL_LoadTexture (char *identifier, int width, int height, byte *data, qboolea
}
// whoever at id or threewave must've been half asleep...
GL_LoadTexture_setup:
glt = &gltextures[numgltextures];
numgltextures++;
glt->texnum = texture_extension_number;
texture_extension_number++;
strcpy (gltextures[glt->texnum].identifier, identifier);
GL_LoadTexture_setup:
// naievil -- why do we have this twice lol
gltextures[glt->texnum].checksum = lhcsum;