diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2021-07-30 12:14:54 -0700 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2025-03-17 20:46:19 -0500 |
| commit | 79a1e480ca75046ef932f26a4c72022422bcd485 (patch) | |
| tree | e41c86998d468986fc89731897d4cf3fbc901020 /Source/Core/VideoBackends/Vulkan/ObjectCache.cpp | |
| parent | 029954020938855b05f7ed199ef482ea24de5530 (diff) | |
Enable anisotropic filtering when the game requests it
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/ObjectCache.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/ObjectCache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp b/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp index 877ad70bd2..2da221c636 100644 --- a/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp +++ b/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp @@ -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()); } |
