mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-27 14:33:00 +00:00
TextureCache: Fix Automatic Anisotropic.
This commit is contained in:
parent
1128cc35b9
commit
1c8a3d8d29
|
@ -66,15 +66,14 @@ float TSCEntry::MaxAnisotropy() const noexcept {
|
||||||
return 1.0f;
|
return 1.0f;
|
||||||
}
|
}
|
||||||
const auto anisotropic_settings = Settings::values.max_anisotropy.GetValue();
|
const auto anisotropic_settings = Settings::values.max_anisotropy.GetValue();
|
||||||
u32 new_max_anisotropic{};
|
u32 added_anisotropic{};
|
||||||
if (anisotropic_settings == 0) {
|
if (anisotropic_settings == 0) {
|
||||||
const auto anisotropic_based_onscale = Settings::values.resolution_info.up_scale >>
|
added_anisotropic = Settings::values.resolution_info.up_scale >>
|
||||||
Settings::values.resolution_info.down_shift;
|
Settings::values.resolution_info.down_shift;
|
||||||
new_max_anisotropic = std::max(anisotropic_based_onscale + 1U, 1U);
|
|
||||||
} else {
|
} else {
|
||||||
new_max_anisotropic = Settings::values.max_anisotropy.GetValue();
|
added_anisotropic = Settings::values.max_anisotropy.GetValue() - 1U;
|
||||||
}
|
}
|
||||||
return static_cast<float>(1U << std::min(max_anisotropy + anisotropic_settings - 1, 31U));
|
return static_cast<float>(1U << (max_anisotropy + added_anisotropic));
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Tegra::Texture
|
} // namespace Tegra::Texture
|
||||||
|
|
Loading…
Reference in a new issue