mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 22:01:50 +00:00
Anisotropic Filtering take 2
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1656 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
a42d9dac20
commit
79d122b3cf
1 changed files with 9 additions and 3 deletions
|
@ -602,7 +602,7 @@ void GLDraw_Anisotropy_f (void)
|
|||
if (Cmd_Argc() == 1)
|
||||
{
|
||||
Con_Printf("Maximum filtering factor: %d\n",gl_anisotropy_factor_max);
|
||||
Con_Printf("0 = off, 1 = off, 2 and beyond = on\n");
|
||||
Con_Printf("0 & 1 = off, 2+ = on\n");
|
||||
|
||||
//insert code that detects if user has forced AF through drivers
|
||||
//because it has no effect if it is forced
|
||||
|
@ -618,9 +618,15 @@ void GLDraw_Anisotropy_f (void)
|
|||
return;
|
||||
}
|
||||
|
||||
if (param > gl_anisotropy_factor_max)
|
||||
{
|
||||
Con_Printf("Maximum filtering factor: %d, set to %d, ignoring %d\n",gl_anisotropy_factor_max,gl_anisotropy_factor_max,param);
|
||||
param = gl_anisotropy_factor_max;
|
||||
}
|
||||
|
||||
gl_anisotropy_factor = param;
|
||||
|
||||
Con_Printf("Attempting to set Anisotopic Filtering Factor: %d\n",gl_anisotropy_factor);
|
||||
Con_Printf("Attempting to set Anisotopic Filtering factor: %d\n",gl_anisotropy_factor);
|
||||
|
||||
/* change all the existing max anisotropy settings */
|
||||
for (glt = gltextures; glt ; glt = glt->next) //redo anisotropic filtering when map is changed
|
||||
|
|
Loading…
Reference in a new issue