From 81b9edc2e30c693562c9ed0312646f8b671b8aeb Mon Sep 17 00:00:00 2001 From: dustinspace217 Date: Wed, 4 Nov 2026 09:20:53 -0800 Subject: [PATCH] Vulkan: sample the thruster distortion map with its repeat sampler (#7940) VulkanDistortion creates a linear/repeat sampler for its noise textures, matching OpenGL's GL_REPEAT on Distortion_texture, but getTextureInfo handed out the post-processing linearSampler instead, which clamps. The sampler that was built for it is now the one used. Co-authored-by: Dustinspace217 --- code/graphics/vulkan/VulkanPostProcessingDistortion.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/graphics/vulkan/VulkanPostProcessingDistortion.cpp b/code/graphics/vulkan/VulkanPostProcessingDistortion.cpp index 3599fc648d..a8e0b8761e 100644 --- a/code/graphics/vulkan/VulkanPostProcessingDistortion.cpp +++ b/code/graphics/vulkan/VulkanPostProcessingDistortion.cpp @@ -272,8 +272,7 @@ vk::DescriptorImageInfo VulkanDistortion::getTextureInfo() const // Distortion_texture[!Distortion_switch] binding for thrusters). // After update() toggles the switch, m_switch points to the old read // source, which is the texture that was just written. - return {m_ctx->linearSampler, m_tex[m_switch].view, - vk::ImageLayout::eShaderReadOnlyOptimal}; + return {m_sampler, m_tex[m_switch].view, vk::ImageLayout::eShaderReadOnlyOptimal}; } } // namespace graphics::vulkan