mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-18 17:00:32 +01:00
vulkan: Default override patch version to VK_HEADER_VERSION
The patch version shouldn't matter but, on the off chance it does, we don't want to be advertising non-existent versions. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26383>
This commit is contained in:
parent
11897376c7
commit
93acce99f3
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ uint32_t vk_get_version_override(void)
|
|||
|
||||
int major = atoi(str);
|
||||
int minor = minor_str ? atoi(minor_str + 1) : 0;
|
||||
int patch = patch_str ? atoi(patch_str + 1) : 0;
|
||||
int patch = patch_str ? atoi(patch_str + 1) : VK_HEADER_VERSION;
|
||||
|
||||
/* Do some basic version sanity checking */
|
||||
if (major < 1 || minor < 0 || patch < 0 || minor > 1023 || patch > 4095)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue