mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-28 22:52:01 +00:00
Now you can change mods in GL safely! Endy sent me a fix for it just
about 5 seconds after I figured out how to fix it, so I can't take full credit for this. =>
This commit is contained in:
parent
05cd97a097
commit
d541b20f5e
1 changed files with 11 additions and 3 deletions
|
@ -1428,9 +1428,17 @@ 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
|
// if (width != glt->width
|
||||||
|| height != glt->height)
|
// || height != glt->height)
|
||||||
Sys_Error ("GL_LoadTexture: cache mismatch");
|
// 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…
Reference in a new issue