aboutsummaryrefslogtreecommitdiff
path: root/layers/image.cpp
diff options
context:
space:
mode:
authorTony Barbour <tony@LunarG.com>2016-03-02 16:22:40 -0700
committerTony Barbour <tony@LunarG.com>2016-03-02 16:26:53 -0700
commit824a50332e0f9695c158b3e3e0d7080b150d6333 (patch)
treeb5c38e30a5dd05f04a1de70d9325143ed4d4b881 /layers/image.cpp
parentb47749759347554a844bd1e0e486e8e36e8e7797 (diff)
downloadusermoji-824a50332e0f9695c158b3e3e0d7080b150d6333.tar.xz
layers: Fix false positive on initialLayout in image layer
Diffstat (limited to 'layers/image.cpp')
-rw-r--r--layers/image.cpp2
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,