From 790c009af797d8ee0983161e448d63e79080df28 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Wed, 10 Apr 2024 17:47:51 +0200 Subject: [PATCH] The PCI vendor ID should be in hex --- src/common/rendering/vulkan/samplers/vk_samplers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/rendering/vulkan/samplers/vk_samplers.cpp b/src/common/rendering/vulkan/samplers/vk_samplers.cpp index 33db31926..9e480dd12 100644 --- a/src/common/rendering/vulkan/samplers/vk_samplers.cpp +++ b/src/common/rendering/vulkan/samplers/vk_samplers.cpp @@ -108,7 +108,7 @@ void VkSamplerManager::CreateHWSamplers() } // Intel has consistently been fucking up anisotropic filtering for a decade now. Time to punish them. If they now finally implement it in their hardware/drivers it will stay disabled! - if (maxAnisotropy > 1.0f && (fb->GetDevice()->PhysicalDevice.Properties.Properties.vendorID != 8086 || (TexFilter[filter].magFilter == VK_FILTER_LINEAR && TexFilter[filter].minFilter == VK_FILTER_LINEAR))) + if (maxAnisotropy > 1.0f && (fb->GetDevice()->PhysicalDevice.Properties.Properties.vendorID != 0x8086 || (TexFilter[filter].magFilter == VK_FILTER_LINEAR && TexFilter[filter].minFilter == VK_FILTER_LINEAR))) builder.Anisotropy(maxAnisotropy); builder.MaxLod(100.0f); // According to the spec this value is clamped so something high makes it usable for all textures. }