mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-30 20:44:15 +01:00
bootmanager: Ensure that we have a context for shader loading.
This commit is contained in:
parent
ac51d048a9
commit
65651078e5
@ -20,10 +20,7 @@
|
|||||||
EmuThread::EmuThread(GRenderWindow* render_window) : render_window(render_window) {}
|
EmuThread::EmuThread(GRenderWindow* render_window) : render_window(render_window) {}
|
||||||
|
|
||||||
void EmuThread::run() {
|
void EmuThread::run() {
|
||||||
if (!Settings::values.use_multi_core) {
|
render_window->MakeCurrent();
|
||||||
// Single core mode must acquire OpenGL context for entire emulation session
|
|
||||||
render_window->MakeCurrent();
|
|
||||||
}
|
|
||||||
|
|
||||||
MicroProfileOnThreadCreate("EmuThread");
|
MicroProfileOnThreadCreate("EmuThread");
|
||||||
|
|
||||||
@ -38,6 +35,11 @@ void EmuThread::run() {
|
|||||||
|
|
||||||
emit LoadProgress(VideoCore::LoadCallbackStage::Complete, 0, 0);
|
emit LoadProgress(VideoCore::LoadCallbackStage::Complete, 0, 0);
|
||||||
|
|
||||||
|
if (Settings::values.use_asynchronous_gpu_emulation) {
|
||||||
|
// Release OpenGL context for the GPU thread
|
||||||
|
render_window->DoneCurrent();
|
||||||
|
}
|
||||||
|
|
||||||
// holds whether the cpu was running during the last iteration,
|
// holds whether the cpu was running during the last iteration,
|
||||||
// so that the DebugModeLeft signal can be emitted before the
|
// so that the DebugModeLeft signal can be emitted before the
|
||||||
// next execution step
|
// next execution step
|
||||||
|
Loading…
Reference in New Issue
Block a user