mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-24 18:20:05 +00:00
Merge pull request #9573 from liamwhite/optional
vulkan_device: avoid attempt to access empty optional
This commit is contained in:
commit
cc92b7fd94
@ -1520,8 +1520,12 @@ void Device::SetupFamilies(VkSurfaceKHR surface) {
|
||||
LOG_ERROR(Render_Vulkan, "Device lacks a present queue");
|
||||
throw vk::Exception(VK_ERROR_FEATURE_NOT_PRESENT);
|
||||
}
|
||||
graphics_family = *graphics;
|
||||
present_family = *present;
|
||||
if (graphics) {
|
||||
graphics_family = *graphics;
|
||||
}
|
||||
if (present) {
|
||||
present_family = *present;
|
||||
}
|
||||
}
|
||||
|
||||
void Device::SetupFeatures() {
|
||||
|
Loading…
Reference in New Issue
Block a user