Warn don't assert on VkDeviceQueueCreateInfo having the wrong sType

This commit is contained in:
baldurk
2016-02-07 18:49:20 +01:00
parent e3375d7927
commit f8df435826
+3 -1
View File
@@ -2513,7 +2513,9 @@ void Serialiser::Serialise(const char *name, VkDeviceQueueCreateInfo &el)
{
ScopedContext scope(this, name, "VkDeviceQueueCreateInfo", 0, true);
RDCASSERT(m_Mode < WRITING || el.sType == VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO);
//RDCASSERT(m_Mode < WRITING || el.sType == VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO);
if(m_Mode >= WRITING && el.sType != VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO)
RDCWARN("sType not set properly: %u", el.sType);
SerialiseNext(this, el.sType, el.pNext);
Serialise("flags", (VkFlagWithNoBits &)el.flags);