renderer_opengl: refactor context acquire

This commit is contained in:
Liam 2022-12-13 12:30:15 -05:00 committed by Alexander Orzechowski
parent b50948dd06
commit 2c6460d168
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();