mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-15 18:31:14 +00:00
set immutable samplers array to NULL if there are none
This commit is contained in:
1 parent
8cb5066422
commit
ad5276b390
1 file changed
+7
-2
@@ -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