mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-17 22:38:06 +02:00
zink: Fix a thinko in instance setup
It really does help to size these arrays correctly.
Fixes: 2b4fcf0a06 zink: generate instance creation code with a python script
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9504>
This commit is contained in:
parent
5d313fb5ec
commit
990e7373d5
1 changed files with 2 additions and 2 deletions
|
|
@ -63,10 +63,10 @@ VkInstance
|
|||
zink_create_instance(struct zink_screen *screen)
|
||||
{
|
||||
/* reserve one slot for MoltenVK */
|
||||
const char *layers[${len(extensions) + 1}] = { 0 };
|
||||
const char *layers[${len(layers) + 1}] = { 0 };
|
||||
uint32_t num_layers = 0;
|
||||
|
||||
const char *extensions[${len(layers) + 1}] = { 0 };
|
||||
const char *extensions[${len(extensions) + 1}] = { 0 };
|
||||
uint32_t num_extensions = 0;
|
||||
|
||||
%for ext in extensions:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue