diff options
author | Jon Leech <[email protected]> | 2019-04-16 05:57:09 -0700 |
---|---|---|
committer | Jon Leech <[email protected]> | 2019-04-16 05:58:45 -0700 |
commit | 171949d26d832d924812537d6698633bcf667877 (patch) | |
tree | c3b069048b2640dc215decc5dd098b2b0e11389c /registry/reg.py | |
parent | 08cbb5458f692d4778806775f65eb3dc642ddbbf (diff) | |
download | Vulkan-Headers-171949d26d832d924812537d6698633bcf667877.tar.gz Vulkan-Headers-171949d26d832d924812537d6698633bcf667877.zip |
Update for Vulkan-Docs 1.1.107
Diffstat (limited to 'registry/reg.py')
-rw-r--r-- | registry/reg.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/registry/reg.py b/registry/reg.py index 29d610f..982c04c 100644 --- a/registry/reg.py +++ b/registry/reg.py @@ -183,6 +183,9 @@ class FeatureInfo(BaseInfo): self.version = "0" self.versionNumber = "0" self.number = elem.get('number') + # If there's no 'number' attribute, use 0, so sorting works + if self.number is None: + self.number = 0 self.supported = elem.get('supported') self.emit = False @@ -655,7 +658,7 @@ class Registry: self.gen.logMsg('diag', 'markRequired: command implicitly requires dependent type', type_elem.text) self.markTypeRequired(type_elem.text, required) else: - self.gen.logMsg('warn', 'command:', name, 'IS NOT DEFINED') + self.gen.logMsg('warn', 'command:', cmdname, 'IS NOT DEFINED') # featurename - name of the feature # feature - Element for <require> or <remove> tag @@ -982,7 +985,7 @@ class Registry: # being generated. Add extensions matching the pattern specified in # regExtensions, then remove extensions matching the pattern # specified in regRemoveExtensions - for (extName,ei) in sorted(self.extdict.items(),key = lambda x : x[1].number): + for (extName,ei) in sorted(self.extdict.items(),key = lambda x : x[1].number if x[1].number is not None else '0'): extName = ei.name include = False |