From 5666dc5890df295446a251b1b3abe4e7d1d88df9 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 27 Nov 2022 19:17:01 -0800 Subject: [PATCH] Vulkan: Correct maxAniso handling in Draw. --- Common/GPU/Vulkan/thin3d_vulkan.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Common/GPU/Vulkan/thin3d_vulkan.cpp b/Common/GPU/Vulkan/thin3d_vulkan.cpp index e26ed4146a..46be4cf00b 100644 --- a/Common/GPU/Vulkan/thin3d_vulkan.cpp +++ b/Common/GPU/Vulkan/thin3d_vulkan.cpp @@ -683,6 +683,7 @@ public: s.addressModeV = AddressModeToVulkan(desc.wrapV); s.addressModeW = AddressModeToVulkan(desc.wrapW); s.anisotropyEnable = desc.maxAniso > 1.0f; + s.maxAnisotropy = desc.maxAniso; s.magFilter = desc.magFilter == TextureFilter::LINEAR ? VK_FILTER_LINEAR : VK_FILTER_NEAREST; s.minFilter = desc.minFilter == TextureFilter::LINEAR ? VK_FILTER_LINEAR : VK_FILTER_NEAREST; s.mipmapMode = desc.mipFilter == TextureFilter::LINEAR ? VK_SAMPLER_MIPMAP_MODE_LINEAR : VK_SAMPLER_MIPMAP_MODE_NEAREST;