mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 05:08:57 +00:00
Don't fill backend info when core is running
The current approach results in the UI thread creating a graphics device whilst the core is running, leading to races on function pointers, and potentially crashing.
This commit is contained in:
parent
a877d5f6dc
commit
93923e2b29
3 changed files with 21 additions and 15 deletions
|
@ -54,6 +54,10 @@ public:
|
|||
static void ClearList();
|
||||
static void ActivateBackend(const std::string& name);
|
||||
|
||||
// Fills the backend_info fields with the capabilities of the selected backend/device.
|
||||
// Called by the UI thread when the graphics config is opened.
|
||||
static void PopulateBackendInfo();
|
||||
|
||||
// the implementation needs not do synchronization logic, because calls to it are surrounded by
|
||||
// PauseAndLock now
|
||||
void DoState(PointerWrap& p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue