diff options
| author | Lenny Komow <lenny@lunarg.com> | 2018-04-19 13:20:22 -0600 |
|---|---|---|
| committer | Lenny Komow <lenny@lunarg.com> | 2018-04-19 16:06:38 -0600 |
| commit | ac70234a5e4d8299ed1c8a5bb90227b57675387d (patch) | |
| tree | 30d9b4fbd4f2ef7e223655770d766b1484c8df60 | |
| parent | 7c356a0775b79d72f064c6709bdecdb62c4e7254 (diff) | |
| download | usermoji-ac70234a5e4d8299ed1c8a5bb90227b57675387d.tar.xz | |
loader: Fix a 1.0/1.1 versioning bug
Fix a bug where when mixing a 1.0 and a 1.1 driver, if the loader
stores the 1.0 driver first, the apiVersion field in vkCreateInstance
will be rewritten to 1.0 for both drivers. Now it will only be
changed for the 1.0 driver, as intended.
Change-Id: I9e7c5e0b0b7c0eb660082319dcddd9e8ef8adc61
| -rw-r--r-- | loader/loader.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/loader/loader.c b/loader/loader.c index d5a0f45a..7298c672 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -5177,6 +5177,8 @@ VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateInstance(const VkInstanceCreateI // If any error happens after here, we need to remove the ICD from the list, // because we've already added it, but haven't validated it + // Make sure that we reset the pApplicationInfo so we don't get an old pointer + icd_create_info.pApplicationInfo = pCreateInfo->pApplicationInfo; icd_create_info.enabledExtensionCount = 0; struct loader_extension_list icd_exts; |
