Fix 32-bit compilation error with explicit VK_NULL_HANDLE comparison

This commit is contained in:
baldurk
2017-06-28 11:48:13 +01:00
parent f190f9af06
commit 92c545ea06
@@ -1149,7 +1149,7 @@ bool WrappedVulkan::Serialise_vkCreateImage(Serialiser *localSerialiser, VkDevic
// of capability or because we disabled it as a workaround then we don't need this
// capability (and it might be the bug we're trying to work around by disabling the
// pipeline)
if(GetDebugManager()->m_MS2ArrayPipe)
if(GetDebugManager()->m_MS2ArrayPipe != VK_NULL_HANDLE)
info.usage |= VK_IMAGE_USAGE_STORAGE_BIT;
}
else
@@ -1227,7 +1227,7 @@ VkResult WrappedVulkan::vkCreateImage(VkDevice device, const VkImageCreateInfo *
{
if(!IsDepthOrStencilFormat(createInfo_adjusted.format))
{
if(GetDebugManager()->m_MS2ArrayPipe)
if(GetDebugManager()->m_MS2ArrayPipe != VK_NULL_HANDLE)
createInfo_adjusted.usage |= VK_IMAGE_USAGE_STORAGE_BIT;
}
else