diff options
| author | 2022-03-08 12:36:57 -0800 | |
|---|---|---|
| committer | 2022-03-08 12:36:57 -0800 | |
| commit | f2743b41b0f8f82bcfe678cf735819ea987b62b4 (patch) | |
| tree | f5cd00237eda3d4ea49a434e8f01f2a912ded9ce /src/video_core | |
| parent | Merge pull request #7989 from degasus/maxwell_LUT3 (diff) | |
| parent | video_core: Cancel Scoped's exit call on GPU failure (diff) | |
| download | yuzu-f2743b41b0f8f82bcfe678cf735819ea987b62b4.tar.gz yuzu-f2743b41b0f8f82bcfe678cf735819ea987b62b4.tar.xz yuzu-f2743b41b0f8f82bcfe678cf735819ea987b62b4.zip | |
Merge pull request #7986 from lat9nq/vk-callback
core, video_core: Fix two crashes when failing to create the emulated GPU instance
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/video_core.cpp | 1 |
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 | |||
| 50 | gpu->BindRenderer(std::move(renderer)); | 50 | gpu->BindRenderer(std::move(renderer)); |
| 51 | return gpu; | 51 | return gpu; |
| 52 | } catch (const std::runtime_error& exception) { | 52 | } catch (const std::runtime_error& exception) { |
| 53 | scope.Cancel(); | ||
| 53 | LOG_ERROR(HW_GPU, "Failed to initialize GPU: {}", exception.what()); | 54 | LOG_ERROR(HW_GPU, "Failed to initialize GPU: {}", exception.what()); |
| 54 | return nullptr; | 55 | return nullptr; |
| 55 | } | 56 | } |