Skip to content

Commit 2744de9

Browse files
committed
vulkaninfo: Fix initializing vectors of structs
1 parent 4f965e1 commit 2744de9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vulkaninfo/vulkaninfo.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ auto GetVectorInit(const char *func_name, F &&f, T init, Ts &&...ts) -> std::vec
239239
uint32_t max_iterations = 5;
240240
do {
241241
count *= 2;
242-
results.resize(count);
242+
results.resize(count, init);
243243
err = f(ts..., &count, results.data());
244244
results.resize(count);
245245
iteration_count++;

0 commit comments

Comments
 (0)