diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-03-31 13:52:07 -0400 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-27 11:36:03 -0400 |
commit | 54e304fe2a38984ea27a7f2240c41a85931d7f6b (patch) | |
tree | a05917e949a1da864c060aec6b874a58af87e244 /src/yuzu/bootmanager.cpp | |
parent | 19165cd859dcbb1f7d5e2c74c831e5196c2d1c41 (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.cpp | 4 |
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 |