Image layout assignment in linear tiling path

Fixes #472
This commit is contained in:
saschawillems 2018-04-28 09:33:05 +02:00
parent f29e024006
commit ee9043d956

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