Commit 4465ecfe authored by Philip Rebohle's avatar Philip Rebohle Committed by Alexandre Julliard

winevulkan: Avoid adding duplicate enum aliases.

VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ID_PROPERTIES_KHR is being defined multiple times by the current vk.xml. Signed-off-by: 's avatarPhilip Rebohle <philip.rebohle@tu-dortmund.de> Signed-off-by: 's avatarLiam Middlebrook <lmiddlebrook@nvidia.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 727441cc
......@@ -395,7 +395,9 @@ class VkEnum(object):
if not value.is_alias() and v.value == value.value:
LOGGER.debug("Adding duplicate enum value {0} to {1}".format(v, self.name))
return
self.values.append(value)
# Avoid adding duplicate aliases multiple times
if not any(x.name == value.name for x in self.values):
self.values.append(value)
def definition(self):
if self.is_alias():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment