Turns out Endy and I made the same mistake! heh He fixed it.

This commit is contained in:
Joseph Carter 2000-03-05 13:02:06 +00:00
parent d541b20f5e
commit 3f6a8ade82
1 changed files with 10 additions and 9 deletions

View File

@ -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;
}
}