renderer_opengl: refactor context acquire

This commit is contained in:
Liam
2022-12-13 12:30:15 -05:00
committed by Alexander Orzechowski
parent a4696285af
commit d5f53da79d
6 changed files with 62 additions and 38 deletions

View File

@ -61,8 +61,6 @@ void EmuThread::run() {
// Main process has been loaded. Make the context current to this thread and begin GPU and CPU
// execution.
gpu.Start();
gpu.ObtainContext();
emit LoadProgress(VideoCore::LoadCallbackStage::Prepare, 0, 0);
@ -77,6 +75,7 @@ void EmuThread::run() {
emit LoadProgress(VideoCore::LoadCallbackStage::Complete, 0, 0);
gpu.ReleaseContext();
gpu.Start();
system.GetCpuManager().OnGpuReady();