Bootmanager/CPU_Manager: Correct shader caches and sync GPU on OpenGL.

This commit is contained in:
Fernando Sahmkow 2020-03-31 13:52:07 -04:00
parent b2109333c6
commit 1146679de6
2 changed files with 13 additions and 6 deletions

View file

@ -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