aboutsummaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorMarkus Wick <markus@selfnet.de>2021-04-07 08:42:54 +0200
committerMarkus Wick <markus@selfnet.de>2021-04-07 22:38:52 +0200
commit37ae463f9e87ace555354857a59bbb9e5c3906cb (patch)
tree81aa729ab6897cadeb1251f6adcafaeab1010f0d /src/core/core.cpp
parentb529aba9cef9d0db1990c637ae31cee2c9bddebd (diff)
video_core/gpu_thread: Implement a ShutDown method.
This was implicitly done by `is_powered_on = false`, however the explicit method allows us to block until the GPU is actually gone. This should fix a race condition while removing the other subsystems while the GPU is still active.
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 305f56ff1c..56b47e671c 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -296,7 +296,7 @@ struct System::Impl {
exit_lock = false;
if (gpu_core) {
- gpu_core->WaitIdle();
+ gpu_core->ShutDown();
}
services.reset();