mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-29 15:12:19 +00:00
allow '$linear:' as a texture flag prefix, in addition to '$nearest:', which is already supported.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4794 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
83f40b8c49
commit
512fad39fb
1 changed files with 6 additions and 0 deletions
|
@ -632,6 +632,12 @@ static int Shader_SetImageFlags(shader_t *shader, shaderpass_t *pass, char **nam
|
|||
flags|= IF_NEAREST;
|
||||
pass->flags |= SHADER_PASS_NEAREST;
|
||||
}
|
||||
else if (!Q_strnicmp(*name, "$linear:", 8))
|
||||
{
|
||||
*name+=8;
|
||||
flags|= IF_LINEAR;
|
||||
pass->flags |= SHADER_PASS_LINEAR;
|
||||
}
|
||||
else
|
||||
name = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue