Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix race condition caused by opening graphics options while running #7437
Opening the graphics option could lead to a race condition with the GPU thread, where state owned by the GPU thread (e.g. function pointers) are updated from the UI thread. This patch ensures that the context is only created when the core is booted, and there is no GPU thread.
It also drops Host_ShowVideoConfig() and the associated call site, as it was not used (remnants from the old plugin days?)
The third commit fixes another issue; the incorrect adapter being selected in multi-GPU systems, if the graphics dialog is not opened prior to booting a game. The same issue applies to other settings which are applied prior to devices being created (e.g. driver validation layer enable).