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:
Unknown W. Brackets 2018-02-11 11:30:38 -08:00
parent c6a9c884bf
commit fcc2b59c57

View File

@ -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);
}