aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorTony Barbour <tony@LunarG.com>2017-03-07 16:06:55 -0700
committerTony Barbour <tony@LunarG.com>2017-03-08 09:21:33 -0700
commit132b4006d5bd8b34043e8ddec2720e8f935ef852 (patch)
treeeda1ab373a6c3da32f827cf22270b20ccf2f3b3d /layers/core_validation.cpp
parente991970a58ab3fe74c66e539e8d89b736e827fba (diff)
downloadusermoji-132b4006d5bd8b34043e8ddec2720e8f935ef852.tar.xz
layers: Set depth to 1 in ci for swapchain images
Change-Id: I64e99f99737e26e284722bcc0ce3dc9518e64438
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index b06dd99c..2f435e94 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -10609,6 +10609,7 @@ VKAPI_ATTR VkResult VKAPI_CALL GetSwapchainImagesKHR(VkDevice device, VkSwapchai
image_ci.format = swapchain_node->createInfo.imageFormat;
image_ci.extent.width = swapchain_node->createInfo.imageExtent.width;
image_ci.extent.height = swapchain_node->createInfo.imageExtent.height;
+ image_ci.extent.depth = 1;
image_ci.mipLevels = 1;
image_ci.arrayLayers = swapchain_node->createInfo.imageArrayLayers;
image_ci.samples = VK_SAMPLE_COUNT_1_BIT;