2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

vulkan_device: avoid attempt to access empty optional

This commit is contained in:
Liam 2023-01-06 21:23:21 -05:00
parent c0f17e1b27
commit 444b25bae1

View file

@ -1520,9 +1520,13 @@ void Device::SetupFamilies(VkSurfaceKHR surface) {
LOG_ERROR(Render_Vulkan, "Device lacks a present queue");
throw vk::Exception(VK_ERROR_FEATURE_NOT_PRESENT);
}
if (graphics) {
graphics_family = *graphics;
}
if (present) {
present_family = *present;
}
}
void Device::SetupFeatures() {
const VkPhysicalDeviceFeatures features{physical.GetFeatures()};