diff options
| author | Charles Giessen <charles@lunarg.com> | 2020-07-28 14:29:09 -0600 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2020-07-28 15:18:48 -0600 |
| commit | a4505d37ffe7ea7e4a66b97a861420380e1e13de (patch) | |
| tree | e70c8ff48544fd3e7b55b930aac3a07d24409093 | |
| parent | 3b36fdc64014844db78671fa0ca1c0ef184e5b0d (diff) | |
| download | usermoji-a4505d37ffe7ea7e4a66b97a861420380e1e13de.tar.xz | |
vulkaninfo: fix device ext list having bad items
vkconfig exposed an issue in the vulkan-loader which resulted in two different sizes
returned from vkEnumerateDeviceExtensionProperties(). A full fix requires a change to
the loader, but this commit stops the issue from happening in vulkaninfo.
Change-Id: I808d1fd13868711675aae5c91ea5100ec8cbc316
| -rw-r--r-- | vulkaninfo/vulkaninfo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vulkaninfo/vulkaninfo.h b/vulkaninfo/vulkaninfo.h index c83691b4..8eca1ea7 100644 --- a/vulkaninfo/vulkaninfo.h +++ b/vulkaninfo/vulkaninfo.h @@ -240,6 +240,7 @@ auto GetVectorInit(const char *func_name, F &&f, T init, Ts &&... ts) -> std::ve if (err) THROW_VK_ERR(func_name, err); results.resize(count, init); err = f(ts..., &count, results.data()); + results.resize(count); } while (err == VK_INCOMPLETE); if (err) THROW_VK_ERR(func_name, err); return results; |
