mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-12 08:57:59 -05:00
OpenGL: Use MakeCurrent/DoneCurrent for multithreaded rendering.
This commit is contained in:
@ -148,6 +148,11 @@ int main(int argc, char** argv) {
|
||||
|
||||
std::unique_ptr<EmuWindow_SDL2> emu_window{std::make_unique<EmuWindow_SDL2>(fullscreen)};
|
||||
|
||||
if (!Settings::values.use_multi_core) {
|
||||
// Single core mode must acquire OpenGL context for entire emulation session
|
||||
emu_window->MakeCurrent();
|
||||
}
|
||||
|
||||
Core::System& system{Core::System::GetInstance()};
|
||||
|
||||
SCOPE_EXIT({ system.Shutdown(); });
|
||||
|
Reference in New Issue
Block a user