From 07bc8c9bacb819e424dbbc5e30a514d7b2fdb8da Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 1 Nov 2025 09:33:55 +0100 Subject: [PATCH] Fix crash when vulkan video is not supported --- server/utils/wivrn_vk_bundle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/wivrn_vk_bundle.cpp b/server/utils/wivrn_vk_bundle.cpp index 425787fa..953f3d07 100644 --- a/server/utils/wivrn_vk_bundle.cpp +++ b/server/utils/wivrn_vk_bundle.cpp @@ -93,7 +93,7 @@ wivrn::wivrn_vk_bundle::wivrn_vk_bundle(vk_bundle & vk, std::span queue_family_index(vk.main_queue->family_index), #ifdef VK_KHR_video_encode_queue encode_queue(make_queue(device, vk.encode_queue->queue, vk.encode_queue->family_index, vk.encode_queue->index)), - encode_queue_family_index(vk.encode_queue->family_index), + encode_queue_family_index(vk.encode_queue ? vk.encode_queue->family_index : vk::QueueFamilyIgnored), #else encode_queue(nullptr), encode_queue_family_index(vk::QueueFamilyIgnored),