summaryrefslogtreecommitdiff
path: root/src/yuzu/check_vulkan.cpp
diff options
context:
space:
mode:
authorlat9nq <lat9nq@gmail.com>2022-05-29 22:26:27 -0400
committerlat9nq <lat9nq@gmail.com>2022-05-30 10:58:18 -0400
commit500b01076e1a96b9c133ff663daad6f9dd8e4039 (patch)
treeb5305da5e8e97e3a42c641e36d644ea0a801b823 /src/yuzu/check_vulkan.cpp
parentb43ae9d5edd0333e004605cef97256699169343d (diff)
yuzu-qt: Make has_broken_vulkan only for crashes
Being able to catch and handle a Vulkan exception is not what this is for.
Diffstat (limited to 'src/yuzu/check_vulkan.cpp')
-rw-r--r--src/yuzu/check_vulkan.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/yuzu/check_vulkan.cpp b/src/yuzu/check_vulkan.cpp
index 1b21efe69..e6d66ab34 100644
--- a/src/yuzu/check_vulkan.cpp
+++ b/src/yuzu/check_vulkan.cpp
@@ -1,6 +1,8 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
#include "video_core/vulkan_common/vulkan_wrapper.h"
-#include <exception>
#include <filesystem>
#include <fstream>
#include "common/fs/fs.h"
@@ -42,8 +44,8 @@ bool CheckVulkan() {
} catch (const Vulkan::vk::Exception& exception) {
LOG_ERROR(Frontend, "Failed to initialize Vulkan: {}", exception.what());
- UISettings::values.has_broken_vulkan = true;
- return false;
+ // Don't set has_broken_vulkan to true here: we care when loading Vulkan crashes the
+ // application, not when we can handle it.
}
std::filesystem::remove(temp_file_loc);