Fix serialisation of non-empty arrays in dummy pQueueFamilyIndices

This commit is contained in:
baldurk
2017-03-21 15:13:51 +00:00
parent dabb790ee1
commit e11f4a5ba7
+3 -2
View File
@@ -3272,8 +3272,9 @@ void Serialiser::Serialise(const char *name, VkBufferCreateInfo &el)
{
// for backwards compatibility with captures, ignore the family count and serialise empty array
uint32_t zero = 0;
uint32_t empty[1] = {0};
SerialisePODArray("pQueueFamilyIndices", (uint32_t *&)empty, zero);
uint32_t *empty = NULL;
SerialisePODArray("pQueueFamilyIndices", empty, zero);
delete[] empty;
}
}