From bbb75a40ca8799f28c88be300928677ae600ba5a Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 18 May 2019 15:11:28 +0300 Subject: [PATCH] - fixed erroneous texture mipmapping in Vulkan render https://forum.zdoom.org/viewtopic.php?t=64257 --- src/rendering/vulkan/textures/vk_samplers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rendering/vulkan/textures/vk_samplers.cpp b/src/rendering/vulkan/textures/vk_samplers.cpp index 6dcb75ec9..460b23034 100644 --- a/src/rendering/vulkan/textures/vk_samplers.cpp +++ b/src/rendering/vulkan/textures/vk_samplers.cpp @@ -92,7 +92,7 @@ void VkSamplerManager::Create() builder.setMinFilter(TexFilter[filter].minFilter); builder.setAddressMode(TexClamp[i].clamp_u, TexClamp[i].clamp_v, VK_SAMPLER_ADDRESS_MODE_REPEAT); builder.setMipmapMode(TexFilter[filter].mipfilter); - if (TexFilter[filter].mipmapping) + if (i <= CLAMP_XY && TexFilter[filter].mipmapping) { builder.setAnisotropy(gl_texture_filter_anisotropic); builder.setMaxLod(100.0f); // According to the spec this value is clamped so something high makes it usable for all textures.