Commit 3d824d11 authored by Georg Lehmann's avatar Georg Lehmann Committed by Alexandre Julliard

winevulkan: Prevent infinite recursion in make_vulkan.

parent d5b31ea6
......@@ -2043,6 +2043,8 @@ class VkStruct(Sequence):
"""
for m in self.members:
if self.name == m.type:
continue
if m.needs_alignment():
return True
return False
......@@ -2057,6 +2059,8 @@ class VkStruct(Sequence):
return True
for m in self.members:
if self.name == m.type:
continue
if m.needs_conversion():
return True
return False
......@@ -2065,6 +2069,8 @@ class VkStruct(Sequence):
""" Returns if struct members need unwrapping of handle. """
for m in self.members:
if self.name == m.type:
continue
if m.needs_unwrapping():
return True
return False
......@@ -2073,11 +2079,11 @@ class VkStruct(Sequence):
""" Check if any struct member needs some memory freeing."""
for m in self.members:
if self.name == m.type:
continue
if m.needs_free():
return True
continue
return False
def needs_struct_extensions_conversion(self):
......@@ -3350,7 +3356,7 @@ class VkRegistry(object):
if "data" in type_info:
types[m.type]["data"].required = True
if type_info["category"] == "struct":
if type_info["category"] == "struct" and struct.name != m.type:
# Yay, recurse
mark_struct_dependencies(type_info["data"], types)
elif type_info["category"] == "funcpointer":
......
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