summaryrefslogtreecommitdiff
path: root/src/yuzu_cmd/yuzu.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-14 20:18:11 -0700
committerGitHub <noreply@github.com>2018-07-14 20:18:11 -0700
commit2cb3fdca86192d5dd2f3c988b5d57732c0bee6dc (patch)
tree8004356e5a9cbbeb4e37dcad9d47ddfffc5f3210 /src/yuzu_cmd/yuzu.cpp
parentc324a378ac5ddc106cab9856a9f90a7f8fa573f1 (diff)
parent05cb10530fbd34635b06f75dea488a8896a763ac (diff)
Merge pull request #598 from bunnei/makedonecurrent
OpenGL: Use MakeCurrent/DoneCurrent for multithreaded rendering.
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
-rw-r--r--src/yuzu_cmd/yuzu.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp
index f126bd277..24db1065a 100644
--- a/src/yuzu_cmd/yuzu.cpp
+++ b/src/yuzu_cmd/yuzu.cpp
@@ -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(); });