Skip to content
Snippets Groups Projects
Unverified Commit cc92b7fd authored by Narr the Reg's avatar Narr the Reg Committed by GitHub
Browse files

Merge pull request #9573 from liamwhite/optional

vulkan_device: avoid attempt to access empty optional
parents c0f17e1b 444b25ba
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment