mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 12:48:57 +00:00
Core: Add option to force linear texture filtering.
This commit is contained in:
parent
abf08b5869
commit
8a3b8a925e
12 changed files with 90 additions and 39 deletions
|
@ -1001,7 +1001,13 @@ static void SetSamplerState(u32 index, float custom_tex_scale, bool custom_tex,
|
|||
state.Generate(bpmem, index);
|
||||
|
||||
// Force texture filtering config option.
|
||||
if (g_ActiveConfig.bForceFiltering)
|
||||
if (g_ActiveConfig.texture_filtering_mode == TextureFilteringMode::Nearest)
|
||||
{
|
||||
state.tm0.min_filter = FilterMode::Near;
|
||||
state.tm0.mag_filter = FilterMode::Near;
|
||||
state.tm0.mipmap_filter = FilterMode::Near;
|
||||
}
|
||||
else if (g_ActiveConfig.texture_filtering_mode == TextureFilteringMode::Linear)
|
||||
{
|
||||
state.tm0.min_filter = FilterMode::Linear;
|
||||
state.tm0.mag_filter = FilterMode::Linear;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue