Update VulkanTexture.hpp

This commit is contained in:
Giuseppe Barbieri 2018-05-02 14:24:24 +02:00 committed by GitHub
parent 51fe3eee02
commit 22b18a7708
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 // and can be directly used as textures
image = mappableImage; image = mappableImage;
deviceMemory = mappableMemory; deviceMemory = mappableMemory;
this.imageLayout = imageLayout; this->imageLayout = imageLayout;
// Setup image memory barrier // Setup image memory barrier
vks::tools::setImageLayout(copyCmd, image, VK_IMAGE_ASPECT_COLOR_BIT, VK_IMAGE_LAYOUT_UNDEFINED, imageLayout); vks::tools::setImageLayout(copyCmd, image, VK_IMAGE_ASPECT_COLOR_BIT, VK_IMAGE_LAYOUT_UNDEFINED, imageLayout);