mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-31 01:00:53 +00:00
Texture cache mismatch fix (I think, since I'm working blind here..)
This commit is contained in:
parent
9b362130b4
commit
a1db7e86ef
1 changed files with 9 additions and 1 deletions
|
@ -1337,7 +1337,15 @@ int GL_LoadTexture (char *identifier, int width, int height, byte *data, qboolea
|
||||||
if (!strcmp (identifier, glt->identifier))
|
if (!strcmp (identifier, glt->identifier))
|
||||||
{
|
{
|
||||||
if (width != glt->width || height != glt->height)
|
if (width != glt->width || height != glt->height)
|
||||||
Sys_Error ("GL_LoadTexture: cache mismatch");
|
{
|
||||||
|
glt->width = width;
|
||||||
|
glt->height = height;
|
||||||
|
glt->mipmap = mipmap;
|
||||||
|
|
||||||
|
GL_Bind (glt->texnum);
|
||||||
|
|
||||||
|
GL_Upload8 (data, width, height, mipmap, alpha);
|
||||||
|
}
|
||||||
return gltextures[i].texnum;
|
return gltextures[i].texnum;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue