mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-19 12:15:52 +00:00
set immutable samplers array to NULL if there are none
This commit is contained in:
@@ -2118,8 +2118,13 @@ void Serialiser::Serialise(const char *name, VkDescriptorSetLayoutBinding &el)
|
||||
bool hasSamplers = el.pImmutableSamplers != NULL;
|
||||
Serialise("hasSamplers", hasSamplers);
|
||||
|
||||
if(hasSamplers && m_Mode == READING)
|
||||
el.pImmutableSamplers = new VkSampler[el.arraySize];
|
||||
if(m_Mode == READING)
|
||||
{
|
||||
if(hasSamplers)
|
||||
el.pImmutableSamplers = new VkSampler[el.arraySize];
|
||||
else
|
||||
el.pImmutableSamplers = NULL;
|
||||
}
|
||||
|
||||
VkSampler *samplers = (VkSampler *)el.pImmutableSamplers;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user