aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/bootmanager.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-03-31 13:52:07 -0400
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-27 11:36:03 -0400
commit1146679de6d99559550a8da55ad2a92eced3cf30 (patch)
treea05917e949a1da864c060aec6b874a58af87e244 /src/yuzu/bootmanager.cpp
parentb2109333c62e6c12277290d641df08c32d663d4b (diff)
Bootmanager/CPU_Manager: Correct shader caches and sync GPU on OpenGL.
Diffstat (limited to 'src/yuzu/bootmanager.cpp')
-rw-r--r--src/yuzu/bootmanager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp
index 6fad01d50b..6aa161e99b 100644
--- a/src/yuzu/bootmanager.cpp
+++ b/src/yuzu/bootmanager.cpp
@@ -56,6 +56,8 @@ void EmuThread::run() {
Core::System::GetInstance().RegisterHostThread();
+ context.MakeCurrent();
+
Core::System::GetInstance().Renderer().Rasterizer().LoadDiskResources(
stop_run, [this](VideoCore::LoadCallbackStage stage, std::size_t value, std::size_t total) {
emit LoadProgress(stage, value, total);
@@ -63,6 +65,8 @@ void EmuThread::run() {
emit LoadProgress(VideoCore::LoadCallbackStage::Complete, 0, 0);
+ context.DoneCurrent();
+
// Holds whether the cpu was running during the last iteration,
// so that the DebugModeLeft signal can be emitted before the
// next execution step