fix invalid VkDevice in vkGetDeviceQueue

This commit is contained in:
jacekpoz 2024-09-24 11:57:30 +02:00
parent 37381e2e1d
commit 1bac9dcfee
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -132,8 +132,8 @@ PTK_OPTION(VkDevice) vk_create_logical_dev(VkPhysicalDevice physical_dev, VkSurf
) )
); );
vkGetDeviceQueue(g_dev, g_queue_family_indices.graphics.value, 0, &g_graphics_queue); vkGetDeviceQueue(ret, g_queue_family_indices.graphics.value, 0, &g_graphics_queue);
vkGetDeviceQueue(g_dev, g_queue_family_indices.present.value, 0, &g_present_queue); vkGetDeviceQueue(ret, g_queue_family_indices.present.value, 0, &g_present_queue);
return PTK_OPTION_SOME(VkDevice, ret); return PTK_OPTION_SOME(VkDevice, ret);
} }