diff options
author | Corentin Noël <corentin.noel@collabora.com> | 2024-03-01 10:25:33 +0100 |
---|---|---|
committer | Corentin Noël <corentin.noel@collabora.com> | 2024-03-01 10:25:33 +0100 |
commit | a763578152df234e56dba3b29ff0f0892bf67242 (patch) | |
tree | 2f4993f79fa7d26380a9514c449d1b72b0e3b121 | |
parent | 6bea22eb30f425386764d992217cbbf3731b2719 (diff) |
vkr: Resize the device extension array to its minimum sizetintou/realloc-extensions
The array will be smaller or of same size and kept into memory so let's resize it.
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
-rw-r--r-- | src/venus/vkr_physical_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/venus/vkr_physical_device.c b/src/venus/vkr_physical_device.c index c463064..6a413cb 100644 --- a/src/venus/vkr_physical_device.c +++ b/src/venus/vkr_physical_device.c @@ -253,7 +253,7 @@ vkr_physical_device_init_extensions(struct vkr_physical_device *physical_dev, physical_dev->KHR_external_fence_fd = false; } - physical_dev->extensions = exts; + physical_dev->extensions = realloc(exts, sizeof(*exts) * advertised_count); physical_dev->extension_count = advertised_count; } |