mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-04 17:32:47 +00:00
Enable anisotropic filtering when the game requests it
This commit is contained in:
parent
0299540209
commit
79a1e480ca
7 changed files with 18 additions and 17 deletions
|
@ -1051,11 +1051,7 @@ SamplerState TextureCacheBase::GetSamplerState(u32 index, float custom_tex_scale
|
|||
state.tm0.mag_filter = FilterMode::Linear;
|
||||
if (tm0.mipmap_filter != MipMode::None)
|
||||
state.tm0.mipmap_filter = FilterMode::Linear;
|
||||
state.tm0.anisotropic_filtering = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
state.tm0.anisotropic_filtering = false;
|
||||
state.tm0.anisotropic_filtering = g_ActiveConfig.iMaxAnisotropy;
|
||||
}
|
||||
|
||||
if (has_arbitrary_mips && tm0.mipmap_filter != MipMode::None)
|
||||
|
@ -1068,7 +1064,7 @@ SamplerState TextureCacheBase::GetSamplerState(u32 index, float custom_tex_scale
|
|||
state.tm0.lod_bias = std::clamp<s32>(state.tm0.lod_bias + lod_offset, -32768, 32767);
|
||||
|
||||
// Anisotropic also pushes mips farther away so it cannot be used either
|
||||
state.tm0.anisotropic_filtering = false;
|
||||
state.tm0.anisotropic_filtering = 0;
|
||||
}
|
||||
|
||||
return state;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue