mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-03-03 21:26:36 +00:00
comp/vk_client: Be sure to init/de-init the mutexes in the vulkan bundle
This commit is contained in:
parent
3f2b09ae54
commit
8553b5f901
|
@ -158,6 +158,7 @@ client_vk_compositor_destroy(struct xrt_compositor *xc)
|
|||
c->vk.vkDestroyCommandPool(c->vk.device, c->vk.cmd_pool, NULL);
|
||||
c->vk.cmd_pool = VK_NULL_HANDLE;
|
||||
}
|
||||
vk_deinit_mutex(&c->vk);
|
||||
|
||||
free(c);
|
||||
}
|
||||
|
@ -541,6 +542,10 @@ client_vk_compositor_create(struct xrt_compositor_native *xcn,
|
|||
goto err_free;
|
||||
}
|
||||
|
||||
ret = vk_init_mutex(&c->vk);
|
||||
if (ret != VK_SUCCESS) {
|
||||
goto err_free;
|
||||
}
|
||||
return c;
|
||||
|
||||
err_free:
|
||||
|
|
Loading…
Reference in a new issue