diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2015-11-23 09:07:20 -0700 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2015-11-23 09:07:20 -0700 |
| commit | 0c1264607139bbc6a2037ee250e0b7d35f5235e7 (patch) | |
| tree | 80d2bf5fa33ac0b31b95e1642f748570749226a4 /layers/image.cpp | |
| parent | 5214e69d0a1c9f8558c7e4186a55d3546e49b459 (diff) | |
| download | usermoji-0c1264607139bbc6a2037ee250e0b7d35f5235e7.tar.xz | |
layers: Fix image layer issue validating aspectMasks
Diffstat (limited to 'layers/image.cpp')
| -rw-r--r-- | layers/image.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/image.cpp b/layers/image.cpp index 3a37530e..662dd0a1 100644 --- a/layers/image.cpp +++ b/layers/image.cpp @@ -499,7 +499,7 @@ VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkCreateImageView(VkDevice device // Compressed formats are compatible if the only difference between them is the numerical type of // the uncompressed pixels (e.g. signed vs. unsigned, or sRGB vs. UNORM encoding). } else if (vk_format_is_depth_and_stencil(imageFormat)) { - if ((aspectMask & (VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT)) != 0) { + if ((aspectMask & (VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT)) == 0) { std::stringstream ss; ss << "vkCreateImageView: Depth/stencil image formats must have at least one of VK_IMAGE_ASPECT_DEPTH_BIT and VK_IMAGE_ASPECT_STENCIL_BIT set"; skipCall |= log_msg(device_data->report_data, VK_DBG_REPORT_ERROR_BIT, VK_OBJECT_TYPE_IMAGE, |
