Fix base_generator vendorTags logic

The logic didn't correctly iterate through the children of tags,
causing the vendorTags list to be generated incorrectly.
This commit is contained in:
unknown 2023-10-03 11:16:13 -06:00 committed by Juan Ramos
parent cf011e717a
commit beadc7e034

View file

@ -125,8 +125,9 @@ class BaseGenerator(OutputGenerator):
for platform in self.registry.tree.findall('platforms/platform'):
self.vk.platforms[platform.get('name')] = platform.get('protect')
for tag in self.registry.tree.findall('tags'):
self.vk.vendorTags.append(tag.get('name'))
for tags in self.registry.tree.findall('tags'):
for tag in tags.findall('tag'):
self.vk.vendorTags.append(tag.get('name'))
# No way known to get this from the XML
self.vk.queueBits[Queues.TRANSFER] = 'VK_QUEUE_TRANSFER_BIT'