Update VulkanTexture.hpp

This commit is contained in:
Giuseppe Barbieri 2018-04-27 10:26:33 +02:00 committed by GitHub
parent 452b78ef42
commit df3a27db02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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