From 10af0e8c93257b8b87f963f2885bd631f345a17c Mon Sep 17 00:00:00 2001 From: kd-11 Date: Tue, 4 Jul 2023 00:50:25 +0300 Subject: [PATCH] vk: Disable anisotropy if the anisotropic level is meaningless --- rpcs3/Emu/RSX/VK/vkutils/sampler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/VK/vkutils/sampler.cpp b/rpcs3/Emu/RSX/VK/vkutils/sampler.cpp index 66575a5f26..92aee578bc 100644 --- a/rpcs3/Emu/RSX/VK/vkutils/sampler.cpp +++ b/rpcs3/Emu/RSX/VK/vkutils/sampler.cpp @@ -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;