summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/video_core/vulkan_common/vulkan_device.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp
index 902e67955..fd1c5a683 100644
--- a/src/video_core/vulkan_common/vulkan_device.cpp
+++ b/src/video_core/vulkan_common/vulkan_device.cpp
@@ -1532,8 +1532,12 @@ void Device::SetupFamilies(VkSurfaceKHR surface) {
1532 LOG_ERROR(Render_Vulkan, "Device lacks a present queue"); 1532 LOG_ERROR(Render_Vulkan, "Device lacks a present queue");
1533 throw vk::Exception(VK_ERROR_FEATURE_NOT_PRESENT); 1533 throw vk::Exception(VK_ERROR_FEATURE_NOT_PRESENT);
1534 } 1534 }
1535 graphics_family = *graphics; 1535 if (graphics) {
1536 present_family = *present; 1536 graphics_family = *graphics;
1537 }
1538 if (present) {
1539 present_family = *present;
1540 }
1537} 1541}
1538 1542
1539void Device::SetupFeatures() { 1543void Device::SetupFeatures() {