diff --git a/src/venus/vkr_device.c b/src/venus/vkr_device.c index a2184e6..d2b7e26 100644 --- a/src/venus/vkr_device.c +++ b/src/venus/vkr_device.c @@ -36,10 +36,12 @@ vkr_device_create_queues(struct vkr_context *ctx, * with flags set to zero. It was fixed in spec version 1.1.130. * Work around drivers that are implementing this buggy behavior */ - if (info.flags) + if (info.flags) { vkGetDeviceQueue2(dev->base.handle.device, &info, &handle); - else - vkGetDeviceQueue(dev->base.handle.device, info.queueFamilyIndex, info.queueIndex, &handle); + } else { + vkGetDeviceQueue(dev->base.handle.device, info.queueFamilyIndex, + info.queueIndex, &handle); + } struct vkr_queue *queue = vkr_queue_create( ctx, dev, info.flags, info.queueFamilyIndex, info.queueIndex, handle);