From 748f2676d5439c21a22f0c34fbba1c6e5aaa1362 Mon Sep 17 00:00:00 2001 From: niki Date: Sat, 27 Aug 2022 22:20:33 +0200 Subject: [PATCH] vulkan: fix mip maps --- src/modules/graphics/vulkan/Texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/vulkan/Texture.cpp b/src/modules/graphics/vulkan/Texture.cpp index a300b280f..b393bfa79 100644 --- a/src/modules/graphics/vulkan/Texture.cpp +++ b/src/modules/graphics/vulkan/Texture.cpp @@ -144,7 +144,7 @@ void Texture::createTextureImageView() { viewInfo.format = vulkanFormat.internalFormat; viewInfo.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; viewInfo.subresourceRange.baseMipLevel = 0; - viewInfo.subresourceRange.levelCount = 1; + viewInfo.subresourceRange.levelCount = getMipmapCount(); viewInfo.subresourceRange.baseArrayLayer = 0; viewInfo.subresourceRange.layerCount = layerCount; viewInfo.components.r = vulkanFormat.swizzleR;