From a5b38596a582150147a0000a8938a01c2af18db5 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Tue, 9 May 2017 17:00:30 -0700 Subject: [PATCH] Fix maxAnisotropy validation error --- lib/graphicsdev/Vulkan.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/graphicsdev/Vulkan.cpp b/lib/graphicsdev/Vulkan.cpp index d0b8449..0816384 100644 --- a/lib/graphicsdev/Vulkan.cpp +++ b/lib/graphicsdev/Vulkan.cpp @@ -595,6 +595,7 @@ void VulkanContext::initSwapChain(VulkanContext::Window& windowCtx, VkSurfaceKHR samplerInfo.addressModeU = VK_SAMPLER_ADDRESS_MODE_REPEAT; samplerInfo.addressModeV = VK_SAMPLER_ADDRESS_MODE_REPEAT; samplerInfo.addressModeW = VK_SAMPLER_ADDRESS_MODE_REPEAT; + samplerInfo.maxAnisotropy = 1.f; ThrowIfFailed(vk::CreateSampler(m_dev, &samplerInfo, nullptr, &m_linearSampler)); /* images */