From b214e0e71f7565240e60b88adf2e2fc06e5ac3ff Mon Sep 17 00:00:00 2001 From: Daniel Brookman Date: Wed, 2 Jun 2021 17:46:57 -0400 Subject: [PATCH] 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. --- Source/Core/Core/Core.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 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);