diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index a0124e9..284b0d1 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -10828,7 +10828,7 @@ void VulkanHppGenerator::readExtensionsExtensionRequire( tinyxml2::XMLElement co { int line = element->GetLineNum(); std::map attributes = getAttributes( element ); - checkAttributes( line, attributes, {}, { { "depends", {} }, { "extension", {} }, { "feature", {} } } ); + checkAttributes( line, attributes, {}, { { "comment", {}}, { "depends", {} }, { "extension", {} }, { "feature", {} } } ); std::vector children = getChildElements( element ); checkElements( line, children, {}, { "command", "comment", "enum", "type" } ); @@ -10849,9 +10849,8 @@ void VulkanHppGenerator::readExtensionsExtensionRequire( tinyxml2::XMLElement co "required extension <" + d + "> already listed" ); } } - else + else if ( attribute.first == "feature" ) { - assert( attribute.first == "feature" ); if ( m_features.find( attribute.second ) != m_features.end() ) { assert( depends.empty() );