diff options
| author | Daniel Brookman <dannntrax@gmail.com> | 2021-06-02 17:46:57 -0400 |
|---|---|---|
| committer | Daniel Brookman <dannntrax@gmail.com> | 2021-06-13 20:42:36 -0400 |
| commit | b214e0e71f7565240e60b88adf2e2fc06e5ac3ff (patch) | |
| tree | 0094dd308fbb0a6c6f94bcf75b7599e058eaf566 /Source/Core | |
| parent | 3ef9d5f6595f8ffac5d93314214aed735616f111 (diff) | |
GameINI: Fix GFXBackend crash
Fixes a regression from 5.0-12066, where setting the GFXBackend variable
to one other than the current global backend would crash Dolphin upon
launching the game.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/Core.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/Core/Core.cpp b/Source/Core/Core/Core.cpp index 1ec847cecc..fb80eb7067 100644 --- a/Source/Core/Core/Core.cpp +++ b/Source/Core/Core/Core.cpp @@ -242,6 +242,9 @@ bool Init(std::unique_ptr<BootParameters> boot, const WindowSystemInfo& wsi) Host_UpdateMainFrame(); // Disable any menus or buttons at boot + // Manually reactivate the video backend in case a GameINI overrides the video backend setting. + VideoBackendBase::PopulateBackendInfo(); + // Issue any API calls which must occur on the main thread for the graphics backend. WindowSystemInfo prepared_wsi(wsi); g_video_backend->PrepareWindow(prepared_wsi); |
