From ee9043d9568d9f1b02020fe76fa7483a891631db Mon Sep 17 00:00:00 2001 From: saschawillems Date: Sat, 28 Apr 2018 09:33:05 +0200 Subject: [PATCH] Image layout assignment in linear tiling path Fixes #472 --- base/VulkanTexture.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/VulkanTexture.hpp b/base/VulkanTexture.hpp index e294c7cf..f8048f38 100644 --- a/base/VulkanTexture.hpp +++ b/base/VulkanTexture.hpp @@ -320,7 +320,7 @@ namespace vks // and can be directly used as textures image = mappableImage; deviceMemory = mappableMemory; - imageLayout = imageLayout; + this->imageLayout = imageLayout; // Setup image memory barrier vks::tools::setImageLayout(copyCmd, image, VK_IMAGE_ASPECT_COLOR_BIT, VK_IMAGE_LAYOUT_UNDEFINED, imageLayout);