mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-24 12:53:08 +00:00
video_core: gpu_thread: Do not wait when system is powered down.
This commit is contained in:
parent
916438a9de
commit
4991620f89
|
@ -135,7 +135,8 @@ void ThreadManager::FlushAndInvalidateRegion(VAddr addr, u64 size) {
|
|||
}
|
||||
|
||||
void ThreadManager::WaitIdle() const {
|
||||
while (state.last_fence > state.signaled_fence.load(std::memory_order_relaxed)) {
|
||||
while (state.last_fence > state.signaled_fence.load(std::memory_order_relaxed) &&
|
||||
system.IsPoweredOn()) {
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue