Commit 421140b6 authored by Georg Lehmann's avatar Georg Lehmann Committed by Alexandre Julliard

winevulkan: Add basic support for extension dependencies.

parent 8fc72492
...@@ -3533,6 +3533,11 @@ class VkRegistry(object): ...@@ -3533,6 +3533,11 @@ class VkRegistry(object):
if len(set(requires).intersection(skipped_exts)) > 0: if len(set(requires).intersection(skipped_exts)) > 0:
skipped_exts.append(ext_name) skipped_exts.append(ext_name)
return return
elif "depends" in ext.attrib:
# The syntax for this is more complex, but this is good enough for now.
if any([sext in ext.attrib["depends"] for sext in skipped_exts]):
skipped_exts.append(ext_name)
return
LOGGER.debug("Loading extension: {0}".format(ext_name)) LOGGER.debug("Loading extension: {0}".format(ext_name))
......
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