vulkan: don't try to enable anisotropic filtering if anisotropy is 1.

This commit is contained in:
Sasha Szpakowski
2025-01-25 12:50:57 -04:00
parent 324b0f831b
commit dd3ebae7a1
+1 -1
View File
@@ -2795,7 +2795,7 @@ VkSampler Graphics::createSampler(const SamplerState &samplerState)
samplerInfo.addressModeU = Vulkan::getWrapMode(samplerState.wrapU);
samplerInfo.addressModeV = Vulkan::getWrapMode(samplerState.wrapV);
samplerInfo.addressModeW = Vulkan::getWrapMode(samplerState.wrapW);
samplerInfo.anisotropyEnable = VK_TRUE;
samplerInfo.anisotropyEnable = samplerState.maxAnisotropy > 1 ? VK_TRUE : VK_FALSE;
samplerInfo.maxAnisotropy = static_cast<float>(samplerState.maxAnisotropy);
// TODO: This probably needs to branch on a pixel format to determine whether