comp/vk_client: Be sure to init/de-init the mutexes in the vulkan bundle

This commit is contained in:
Ryan Pavlik 2021-03-30 11:51:09 -05:00 committed by Jakob Bornecrantz
parent 3f2b09ae54
commit 8553b5f901

View file

@ -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: