vk: Disable anisotropy if the anisotropic level is meaningless

This commit is contained in:
kd-11 2023-07-04 00:50:25 +03:00 committed by kd-11
parent d13cf0e29a
commit 10af0e8c93

View File

@ -51,7 +51,7 @@ namespace vk
info.addressModeU = clamp_u;
info.addressModeV = clamp_v;
info.addressModeW = clamp_w;
info.anisotropyEnable = dev.get_anisotropic_filtering_support();
info.anisotropyEnable = max_anisotropy >= 2. && dev.get_anisotropic_filtering_support();
info.compareEnable = depth_compare;
info.unnormalizedCoordinates = unnormalized_coordinates;
info.mipLodBias = mipLodBias;