diff options
| author | Tony Barbour <tony@LunarG.com> | 2016-03-02 16:22:40 -0700 |
|---|---|---|
| committer | Tony Barbour <tony@LunarG.com> | 2016-03-02 16:26:53 -0700 |
| commit | 824a50332e0f9695c158b3e3e0d7080b150d6333 (patch) | |
| tree | b5c38e30a5dd05f04a1de70d9325143ed4d4b881 /layers/image.cpp | |
| parent | b47749759347554a844bd1e0e486e8e36e8e7797 (diff) | |
| download | usermoji-824a50332e0f9695c158b3e3e0d7080b150d6333.tar.xz | |
layers: Fix false positive on initialLayout in image layer
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 ecfcc38d..b6c02f13 100644 --- a/layers/image.cpp +++ b/layers/image.cpp @@ -417,7 +417,7 @@ VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkCreateImage(VkDevice device, co string_VkSampleCountFlagBits(pCreateInfo->samples), ImageFormatProperties.sampleCounts); } - if (pCreateInfo->initialLayout != VK_IMAGE_LAYOUT_UNDEFINED || + if (pCreateInfo->initialLayout != VK_IMAGE_LAYOUT_UNDEFINED && pCreateInfo->initialLayout != VK_IMAGE_LAYOUT_PREINITIALIZED) { skipCall |= log_msg(phy_dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT, |
