Merge pull request #9775 from dbrookman/fix-gameini-gfxbackend

GameINI: Fix GFXBackend crash
This commit is contained in:
Léo Lam 2021-06-15 12:47:55 +02:00 committed by GitHub
commit ee58f1c188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -243,6 +243,9 @@ bool Init(std::unique_ptr<BootParameters> boot, const WindowSystemInfo& wsi)
Host_UpdateMainFrame(); // Disable any menus or buttons at boot 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. // Issue any API calls which must occur on the main thread for the graphics backend.
WindowSystemInfo prepared_wsi(wsi); WindowSystemInfo prepared_wsi(wsi);
g_video_backend->PrepareWindow(prepared_wsi); g_video_backend->PrepareWindow(prepared_wsi);