From df3a27db0271c32229707acb00e1a5190a5b29a2 Mon Sep 17 00:00:00 2001 From: Giuseppe Barbieri Date: Fri, 27 Apr 2018 10:26:33 +0200 Subject: [PATCH] Update VulkanTexture.hpp --- base/VulkanTexture.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/VulkanTexture.hpp b/base/VulkanTexture.hpp index e294c7cf..3f00b2ca 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); @@ -973,4 +973,4 @@ namespace vks } }; -} \ No newline at end of file +}