diff options
| author | ziga-lunarg <ziga@lunarg.com> | 2024-12-06 16:34:39 +0200 |
|---|---|---|
| committer | ziga-lunarg <87310389+ziga-lunarg@users.noreply.github.com> | 2024-12-06 18:53:27 +0200 |
| commit | 2744de9936755fea6912d47e7a0a8857d8a4fdee (patch) | |
| tree | e7854ecdbcef5af271bd19887a22263938cdf0e0 | |
| parent | 4f965e1de79ba354fff816f1108cc25066847be0 (diff) | |
| download | usermoji-2744de9936755fea6912d47e7a0a8857d8a4fdee.tar.xz | |
vulkaninfo: Fix initializing vectors of structs
| -rw-r--r-- | vulkaninfo/vulkaninfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vulkaninfo/vulkaninfo.h b/vulkaninfo/vulkaninfo.h index f3eb43e2..88d9a634 100644 --- a/vulkaninfo/vulkaninfo.h +++ b/vulkaninfo/vulkaninfo.h @@ -239,7 +239,7 @@ auto GetVectorInit(const char *func_name, F &&f, T init, Ts &&...ts) -> std::vec uint32_t max_iterations = 5; do { count *= 2; - results.resize(count); + results.resize(count, init); err = f(ts..., &count, results.data()); results.resize(count); iteration_count++; |
