mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-13 11:38:34 +00:00
GLES: Wait for queue idle properly.
Need to wait for anything ready for run. Not everything will have been submitted.
This commit is contained in:
parent
c6a9c884bf
commit
fcc2b59c57
@ -514,7 +514,7 @@ void GLRenderManager::WaitUntilQueueIdle() {
|
||||
|
||||
std::unique_lock<std::mutex> lock(frameData.push_mutex);
|
||||
// Ignore unsubmitted frames.
|
||||
while (!frameData.readyForFence && !frameData.readyForSubmit) {
|
||||
while (!frameData.readyForFence && frameData.readyForRun) {
|
||||
VLOG("PUSH: Waiting for frame[%d].readyForFence = 1 (wait idle)", i);
|
||||
frameData.push_condVar.wait(lock);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user