mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +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
|
@ -398,11 +398,11 @@ VkSampler ObjectCache::GetSampler(const SamplerState& info)
|
|||
};
|
||||
|
||||
// Can we use anisotropic filtering with this sampler?
|
||||
if (info.tm0.anisotropic_filtering && g_vulkan_context->SupportsAnisotropicFiltering())
|
||||
if (info.tm0.anisotropic_filtering != 0 && g_vulkan_context->SupportsAnisotropicFiltering())
|
||||
{
|
||||
// Cap anisotropy to device limits.
|
||||
create_info.anisotropyEnable = VK_TRUE;
|
||||
create_info.maxAnisotropy = std::min(static_cast<float>(1 << g_ActiveConfig.iMaxAnisotropy),
|
||||
create_info.maxAnisotropy = std::min(static_cast<float>(1 << info.tm0.anisotropic_filtering),
|
||||
g_vulkan_context->GetMaxSamplerAnisotropy());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue