winevulkan: Fix host command_buffers allocation size.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
be41201c0a
commit
2eae345d8c
|
@ -1290,7 +1290,7 @@ VkResult WINAPI wine_vkQueueSubmit(VkQueue queue, uint32_t count,
|
||||||
memcpy(&submits_host[i], &submits[i], sizeof(*submits_host));
|
memcpy(&submits_host[i], &submits[i], sizeof(*submits_host));
|
||||||
|
|
||||||
num_command_buffers = submits[i].commandBufferCount;
|
num_command_buffers = submits[i].commandBufferCount;
|
||||||
command_buffers = heap_calloc(num_command_buffers, sizeof(*submits_host));
|
command_buffers = heap_calloc(num_command_buffers, sizeof(*command_buffers));
|
||||||
if (!command_buffers)
|
if (!command_buffers)
|
||||||
{
|
{
|
||||||
ERR("Unable to allocate memory for command buffers!\n");
|
ERR("Unable to allocate memory for command buffers!\n");
|
||||||
|
|
Loading…
Reference in New Issue