mirror of
https://github.com/love2d/love.git
synced 2026-08-12 16:40:57 +02:00
vulkan: don't try to enable anisotropic filtering if anisotropy is 1.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user