diff --git a/examples/texture3d/texture3d.cpp b/examples/texture3d/texture3d.cpp index 8031c2f5..e88ae93a 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;