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:
Spoike 2014-11-24 15:20:22 +00:00
parent 83f40b8c49
commit 512fad39fb

View file

@ -632,6 +632,12 @@ static int Shader_SetImageFlags(shader_t *shader, shaderpass_t *pass, char **nam
flags|= IF_NEAREST; flags|= IF_NEAREST;
pass->flags |= SHADER_PASS_NEAREST; pass->flags |= SHADER_PASS_NEAREST;
} }
else if (!Q_strnicmp(*name, "$linear:", 8))
{
*name+=8;
flags|= IF_LINEAR;
pass->flags |= SHADER_PASS_LINEAR;
}
else else
name = NULL; name = NULL;
} }