(HLSL) Cleanup hlsl_filter_type too

This commit is contained in:
twinaphex 2014-10-02 15:25:51 +02:00
parent 4c6fa4f059
commit ca004c370c

View File

@ -395,10 +395,9 @@ static unsigned hlsl_num(void)
static bool hlsl_filter_type(unsigned index, bool *smooth)
{
if (hlsl_active && index)
if (hlsl_active && index
&& (cg_shader->pass[index - 1].filter != RARCH_FILTER_UNSPEC))
{
if (cg_shader->pass[index - 1].filter == RARCH_FILTER_UNSPEC)
return false;
*smooth = cg_shader->pass[index - 1].filter = RARCH_FILTER_LINEAR;
return true;
}