From 85304fad84e96e3b9c20e96167adff7edaae6f10 Mon Sep 17 00:00:00 2001 From: ziga-lunarg Date: Fri, 6 Dec 2024 16:34:39 +0200 Subject: [PATCH] vulkaninfo: Fix initializing vectors of structs --- vulkaninfo/vulkaninfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vulkaninfo/vulkaninfo.h b/vulkaninfo/vulkaninfo.h index f3eb43e24..88d9a634b 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++;