mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
set resolveAttachments to NULL in case there are no resolves
This commit is contained in:
@@ -1332,11 +1332,9 @@ void Serialiser::Serialise(const char *name, VkSubpassDescription &el)
|
||||
bool hasResolves = (el.resolveAttachments != NULL);
|
||||
Serialise("hasResolves", hasResolves);
|
||||
|
||||
if(m_Mode == READING) el.resolveAttachments = NULL;
|
||||
if(hasResolves)
|
||||
{
|
||||
if(m_Mode == READING) el.resolveAttachments = NULL;
|
||||
Serialise("resolveAttachments", (VkAttachmentReference *&)el.resolveAttachments, sz);
|
||||
}
|
||||
|
||||
Serialise("preserveCount", el.preserveCount); sz = el.preserveCount;
|
||||
if(m_Mode == READING) el.preserveAttachments = NULL;
|
||||
|
||||
Reference in New Issue
Block a user