mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-25 13:21:04 +00:00
Turns out Endy and I made the same mistake! heh He fixed it.
This commit is contained in:
parent
d541b20f5e
commit
3f6a8ade82
1 changed files with 10 additions and 9 deletions
|
@ -1428,17 +1428,18 @@ int GL_LoadTexture (char *identifier, int width, int height, byte *data, qboolea
|
|||
{
|
||||
if (!strcmp (identifier, glt->identifier))
|
||||
{
|
||||
// if (width != glt->width
|
||||
// || height != glt->height)
|
||||
// Sys_Error ("GL_LoadTexture: cache mismatch");
|
||||
glt->width = width;
|
||||
glt->height = height;
|
||||
glt->mipmap = mipmap;
|
||||
if (width != glt->width
|
||||
|| height != glt->height)
|
||||
{
|
||||
glt->width = width;
|
||||
glt->height = height;
|
||||
glt->mipmap = mipmap;
|
||||
|
||||
GL_Bind (glt->texnum);
|
||||
GL_Bind (glt->texnum);
|
||||
|
||||
GL_Upload8 (data, width, height, mipmap, alpha);
|
||||
|
||||
GL_Upload8 (data, width, height,
|
||||
mipmap, alpha);
|
||||
}
|
||||
return gltextures[i].texnum;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue