From 55609d192fe4acfe79eac0d31db6de26270eaffc Mon Sep 17 00:00:00 2001 From: Squareys Date: Tue, 18 Oct 2016 19:00:21 +0200 Subject: [PATCH] Vk: Make sure to use normalized texture coordinates Signed-off-by: Squareys --- src/Magnum/Vk/Texture.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Magnum/Vk/Texture.h b/src/Magnum/Vk/Texture.h index 186a69201..927fdb087 100644 --- a/src/Magnum/Vk/Texture.h +++ b/src/Magnum/Vk/Texture.h @@ -69,6 +69,7 @@ class MAGNUM_VK_EXPORT Texture { sampler.maxAnisotropy = 8; sampler.anisotropyEnable = VK_TRUE; sampler.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE; + sampler.unnormalizedCoordinates = VK_FALSE; VkResult err = vkCreateSampler(device, &sampler, nullptr, &_sampler); MAGNUM_VK_ASSERT_ERROR(err);