mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
wined3d: Zero-initialise context_vk in wined3d_context_vk_init().
wined3d_context_vk_init() assumes zero-initialised memory, but that's not necessarily true in case we previously went through an adapter_vk_init_3d()/adapter_vk_uninit_3d() pair. Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8a3a67efd4
commit
353e84015b
1 changed files with 1 additions and 0 deletions
|
@ -3158,6 +3158,7 @@ HRESULT wined3d_context_vk_init(struct wined3d_context_vk *context_vk, struct wi
|
|||
|
||||
TRACE("context_vk %p, swapchain %p.\n", context_vk, swapchain);
|
||||
|
||||
memset(context_vk, 0, sizeof(*context_vk));
|
||||
wined3d_context_init(&context_vk->c, swapchain);
|
||||
device_vk = wined3d_device_vk(swapchain->device);
|
||||
adapter_vk = wined3d_adapter_vk(device_vk->d.adapter);
|
||||
|
|
Loading…
Reference in a new issue