mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 01:16:31 +00:00
Ignore generated initial states for images with no memory bound
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user