Browse Source

Vk: Make sure to use normalized texture coordinates

Signed-off-by: Squareys <Squareys@googlemail.com>
pull/202/head
Squareys 10 years ago
parent
commit
55609d192f
  1. 1
      src/Magnum/Vk/Texture.h

1
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);

Loading…
Cancel
Save