1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-08-29 15:36:32 -05:00

Merge pull request #7986 from lat9nq/vk-callback

core, video_core: Fix two crashes when failing to create the emulated GPU instance
This commit is contained in:
bunnei
2022-03-08 12:36:57 -08:00
committed by GitHub
3 changed files with 14 additions and 2 deletions

View File

@@ -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;
}