c/client: Use helper function to see if timeline semaphore is avaiable

This commit is contained in:
Jakob Bornecrantz 2022-04-28 10:53:51 +01:00
parent 0dbe9857c3
commit bc89a23280

View file

@ -819,7 +819,7 @@ client_vk_compositor_create(struct xrt_compositor_native *xcn,
}
#ifdef VK_KHR_timeline_semaphore
if (c->vk.features.timeline_semaphore) {
if (vk_can_import_and_export_timeline_semaphore(&c->vk)) {
xret = setup_semaphore(c);
if (xret != XRT_SUCCESS) {
goto err_mutex;