summaryrefslogtreecommitdiffstats
path: root/src/video_core/video_core.cpp
diff options
context:
space:
mode:
authorlat9nq <lat9nq@gmail.com>2022-03-07 09:37:54 +0100
committerlat9nq <lat9nq@gmail.com>2022-03-08 00:21:56 +0100
commitb5e60ae1b0568d6c9e47134dd2bda70906a2dad9 (patch)
tree93c23176ccbc92e7340262a7279edbe2f3888d1c /src/video_core/video_core.cpp
parentemu_window: Create a way to Cancel the exit of a Scoped (diff)
downloadyuzu-b5e60ae1b0568d6c9e47134dd2bda70906a2dad9.tar
yuzu-b5e60ae1b0568d6c9e47134dd2bda70906a2dad9.tar.gz
yuzu-b5e60ae1b0568d6c9e47134dd2bda70906a2dad9.tar.bz2
yuzu-b5e60ae1b0568d6c9e47134dd2bda70906a2dad9.tar.lz
yuzu-b5e60ae1b0568d6c9e47134dd2bda70906a2dad9.tar.xz
yuzu-b5e60ae1b0568d6c9e47134dd2bda70906a2dad9.tar.zst
yuzu-b5e60ae1b0568d6c9e47134dd2bda70906a2dad9.zip
Diffstat (limited to 'src/video_core/video_core.cpp')
-rw-r--r--src/video_core/video_core.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video_core/video_core.cpp b/src/video_core/video_core.cpp
index 329bf4def..2f2594585 100644
--- a/src/video_core/video_core.cpp
+++ b/src/video_core/video_core.cpp
@@ -50,6 +50,7 @@ std::unique_ptr<Tegra::GPU> CreateGPU(Core::Frontend::EmuWindow& emu_window, Cor
gpu->BindRenderer(std::move(renderer));
return gpu;
} catch (const std::runtime_error& exception) {
+ scope.Cancel();
LOG_ERROR(HW_GPU, "Failed to initialize GPU: {}", exception.what());
return nullptr;
}