From f7e8081902e8579cb47c89b7379db6c260c75c2e Mon Sep 17 00:00:00 2001 From: Kirill Gavrilov Date: Sun, 22 Apr 2018 13:35:05 +0300 Subject: [PATCH] Fix texture height misprint in texture3d sample --- examples/texture3d/texture3d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/texture3d/texture3d.cpp b/examples/texture3d/texture3d.cpp index ec17a076..2f4f444c 100644 --- a/examples/texture3d/texture3d.cpp +++ b/examples/texture3d/texture3d.cpp @@ -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;