Browse Source
Merge pull request #9573 from liamwhite/optional
vulkan_device: avoid attempt to access empty optional
pull/15/merge
Narr the Reg
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
2 deletions
-
src/video_core/vulkan_common/vulkan_device.cpp
|
|
|
@ -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() { |
|
|
|
|