Do not specify anisotropy flag when creating a sampler (since anisotropic filtering is not used by the engine).

This fixes validation layer warning.
This commit is contained in:
Artem Kharytoniuk 2018-03-25 00:35:13 +01:00
parent 4102b0f2c8
commit c3ea7fed26

View File

@ -2008,7 +2008,7 @@ VkSampler vk_find_sampler(const Vk_Sampler_Def& def) {
desc.addressModeV = address_mode;
desc.addressModeW = address_mode;
desc.mipLodBias = 0.0f;
desc.anisotropyEnable = VK_TRUE;
desc.anisotropyEnable = VK_FALSE;
desc.maxAnisotropy = 1;
desc.compareEnable = VK_FALSE;
desc.compareOp = VK_COMPARE_OP_ALWAYS;