mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Don't do overloading of translate_filter
This commit is contained in:
parent
9f6e273e6a
commit
f277fd5323
@ -89,23 +89,18 @@ static INLINE D3DTEXTUREFILTERTYPE translate_filter(unsigned type)
|
||||
switch (type)
|
||||
{
|
||||
case RARCH_FILTER_UNSPEC:
|
||||
return settings->video.smooth ? D3DTEXF_LINEAR : D3DTEXF_POINT;
|
||||
if (!settings->video.smooth)
|
||||
break;
|
||||
/* fall-through */
|
||||
case RARCH_FILTER_LINEAR:
|
||||
return D3DTEXF_LINEAR;
|
||||
case RARCH_FILTER_NEAREST:
|
||||
return D3DTEXF_POINT;
|
||||
break;
|
||||
}
|
||||
|
||||
return D3DTEXF_POINT;
|
||||
}
|
||||
|
||||
static INLINE D3DTEXTUREFILTERTYPE translate_filter(bool smooth)
|
||||
{
|
||||
if (smooth)
|
||||
return D3DTEXF_LINEAR;
|
||||
return D3DTEXF_POINT;
|
||||
}
|
||||
|
||||
static const char *stock_program =
|
||||
"void main_vertex"
|
||||
"("
|
||||
@ -617,9 +612,9 @@ static void cg_d3d9_renderchain_add_lut(void *data,
|
||||
|
||||
d3d_set_texture(chain->dev, index, chain->luts[i].tex);
|
||||
d3d_set_sampler_magfilter(chain->dev, index,
|
||||
translate_filter(chain->luts[i].smooth));
|
||||
translate_filter(chain->luts[i].smooth ? RARCH_FILTER_LINEAR : RARCH_FILTER_NEAREST));
|
||||
d3d_set_sampler_minfilter(chain->dev, index,
|
||||
translate_filter(chain->luts[i].smooth));
|
||||
translate_filter(chain->luts[i].smooth ? RARCH_FILTER_LINEAR : RARCH_FILTER_NEAREST));
|
||||
d3d_set_sampler_address_u(chain->dev, index, D3DTADDRESS_BORDER);
|
||||
d3d_set_sampler_address_v(chain->dev, index, D3DTADDRESS_BORDER);
|
||||
chain->bound_tex.push_back(index);
|
||||
|
Loading…
x
Reference in New Issue
Block a user