mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
VideoBackends: Make it possible for PrepareWindow to change the surface
Again, needed for MoltenVK.
This commit is contained in:
@ -233,12 +233,13 @@ bool Init(std::unique_ptr<BootParameters> boot, const WindowSystemInfo& wsi)
|
||||
Host_UpdateMainFrame(); // Disable any menus or buttons at boot
|
||||
|
||||
// Issue any API calls which must occur on the main thread for the graphics backend.
|
||||
g_video_backend->PrepareWindow(wsi);
|
||||
WindowSystemInfo prepared_wsi(wsi);
|
||||
g_video_backend->PrepareWindow(prepared_wsi);
|
||||
|
||||
// Start the emu thread
|
||||
s_done_booting.Reset();
|
||||
s_is_booting.Set();
|
||||
s_emu_thread = std::thread(EmuThread, std::move(boot), wsi);
|
||||
s_emu_thread = std::thread(EmuThread, std::move(boot), prepared_wsi);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user