Merge pull request #469 from gkv311/master

Fix texture height misprint in texture3d sample
This commit is contained in:
Sascha Willems 2018-08-26 09:56:07 +02:00 committed by GitHub
commit 03864fcce7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -257,7 +257,7 @@ public:
imageCreateInfo.tiling = VK_IMAGE_TILING_OPTIMAL;
imageCreateInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
imageCreateInfo.extent.width = texture.width;
imageCreateInfo.extent.height = texture.width;
imageCreateInfo.extent.height = texture.height;
imageCreateInfo.extent.depth = texture.depth;
// Set initial layout of the image to undefined
imageCreateInfo.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED;