Fix the header generation for complex disabled extensions (#363)

This commit is contained in:
Yiwei Zhang 2019-07-25 00:44:49 -07:00 committed by Andreas Süßenbach
parent b01f3c0bb5
commit d5d4f3457b

View File

@ -1516,8 +1516,12 @@ void VulkanHppGenerator::readExtensionDisabledRequire(tinyxml2::XMLElement const
else
{
// a type simply needs to be removed from the structs and vkTypes sets
assert(m_structures.find(nameAttribute->second) != m_structures.end());
assert(m_structures.find(nameAttribute->second) != m_structures.end() ||
m_bitmasks.find(nameAttribute->second) != m_bitmasks.end() ||
m_bitmaskBits.find(nameAttribute->second) != m_bitmaskBits.end());
m_structures.erase(nameAttribute->second);
m_bitmasks.erase(nameAttribute->second);
m_bitmaskBits.erase(nameAttribute->second);
}
}
else if (value == "enum")