From 7dec672af9f58b9f4855d07316eecc33d39b3c9c Mon Sep 17 00:00:00 2001 From: Kane Rogers-Wong Date: Fri, 17 May 2024 08:50:10 +0800 Subject: [PATCH] Change texture sample mode to CLAMP_TO_EDGE Closes #162 --- crates/yakui-vulkan/src/vulkan_texture.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/yakui-vulkan/src/vulkan_texture.rs b/crates/yakui-vulkan/src/vulkan_texture.rs index d0603c27..35b2aa09 100644 --- a/crates/yakui-vulkan/src/vulkan_texture.rs +++ b/crates/yakui-vulkan/src/vulkan_texture.rs @@ -59,7 +59,7 @@ impl VulkanTexture { memory: vk::DeviceMemory, view: vk::ImageView, ) -> Self { - let address_mode = vk::SamplerAddressMode::REPEAT; + let address_mode = vk::SamplerAddressMode::CLAMP_TO_EDGE; let filter = vk::Filter::LINEAR; let sampler = unsafe { vulkan_context