From f60264fee52ec01dfb0ff7bb633d126408a14dd2 Mon Sep 17 00:00:00 2001 From: asuessenbach Date: Tue, 29 Mar 2022 08:41:49 +0200 Subject: [PATCH] Resolved an assertion in readTypesTypeStruct. --- VulkanHppGenerator.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index cd53767..c8dc584 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -13748,7 +13748,7 @@ void VulkanHppGenerator::readTypesTypeStruct( tinyxml2::XMLElement const * eleme checkAttributes( line, attributes, { { "category", { isUnion ? "union" : "struct" } }, { "name", {} } }, - { { "allowduplicate", { "true" } }, { "comment", {} }, { "returnedonly", { "true" } }, { "structextends", {} } } ); + { { "allowduplicate", { "false", "true" } }, { "comment", {} }, { "returnedonly", { "true" } }, { "structextends", {} } } ); std::vector children = getChildElements( element ); checkElements( line, children, {}, { "member", "comment" } ); @@ -13760,8 +13760,7 @@ void VulkanHppGenerator::readTypesTypeStruct( tinyxml2::XMLElement const * eleme { if ( attribute.first == "allowduplicate" ) { - assert( attribute.second == "true" ); - allowDuplicate = true; + allowDuplicate = ( attribute.second == "true" ); } else if ( attribute.first == "category" ) {