mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
anv/extensions: Fix VkVersion::c_vk_version for patch == None
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
This commit is contained in:
parent
93e789a266
commit
cb0d1ba156
1 changed files with 2 additions and 1 deletions
|
|
@ -112,7 +112,8 @@ class VkVersion:
|
|||
return '.'.join(ver_list)
|
||||
|
||||
def c_vk_version(self):
|
||||
ver_list = [str(self.major), str(self.minor), str(self.patch)]
|
||||
patch = self.patch if self.patch is not None else 0
|
||||
ver_list = [str(self.major), str(self.minor), str(patch)]
|
||||
return 'VK_MAKE_VERSION(' + ', '.join(ver_list) + ')'
|
||||
|
||||
def __int_ver(self):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue