summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2025-03-23 15:17:24 -0400
committerGitHub <noreply@github.com>2025-03-23 15:17:24 -0400
commit9b0471532ce8f715c2c681cb7fb7173e75708104 (patch)
tree426ee98d5c5616aad80a7da1870d2ca288be423c /Source/Core/VideoBackends/Vulkan/ObjectCache.cpp
parent2da255d8cdb2da67123296f5f091f808c696d021 (diff)
parent561aee7707d4ace0d987deed6c8084178c653c3d (diff)
Merge pull request #13368 from jordan-woyak/anisotropic-filtering
Use Game Requested Anisotropic Filtering
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/ObjectCache.cpp')
-rw-r--r--Source/Core/VideoBackends/Vulkan/ObjectCache.cpp4
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());
}