mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 01:01:07 +00:00
gl_texmgr.c: small optimization
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@618 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
cbd6732189
commit
ced1af03af
1 changed files with 8 additions and 5 deletions
|
@ -131,11 +131,14 @@ static void TexMgr_TextureMode_f (cvar_t *var)
|
||||||
{
|
{
|
||||||
if (!Q_strcmp (modes[i].name, gl_texturemode.string))
|
if (!Q_strcmp (modes[i].name, gl_texturemode.string))
|
||||||
{
|
{
|
||||||
mode = i;
|
if (mode != i)
|
||||||
for (glt = active_gltextures; glt; glt = glt->next)
|
{
|
||||||
TexMgr_SetFilterModes (glt);
|
mode = i;
|
||||||
Sbar_Changed (); //sbar graphics need to be redrawn with new filter mode
|
for (glt = active_gltextures; glt; glt = glt->next)
|
||||||
//FIXME: warpimages need to be redrawn, too.
|
TexMgr_SetFilterModes (glt);
|
||||||
|
Sbar_Changed (); //sbar graphics need to be redrawn with new filter mode
|
||||||
|
//FIXME: warpimages need to be redrawn, too.
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue