Ignore generated initial states for images with no memory bound

This commit is contained in:
baldurk
2020-09-08 12:57:00 +01:00
parent facf150efe
commit 515d4c5dc3
+4
View File
@@ -1419,6 +1419,10 @@ void WrappedVulkan::Apply_InitialState(WrappedVkRes *live, const VkInitialConten
// handle any 'created' initial states, without an actual image with contents
if(initial.tag != VkInitialContents::BufferCopy)
{
// ignore images with no memory bound
if(boundMemory == ResourceId())
return;
if(initial.tag == VkInitialContents::ClearColorImage)
{
VkFormat format = imageInfo.format;