From fcc2b59c575881cbe9d72d67709c9e262502ffab Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 11 Feb 2018 11:30:38 -0800 Subject: [PATCH] GLES: Wait for queue idle properly. Need to wait for anything ready for run. Not everything will have been submitted. --- ext/native/thin3d/GLRenderManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/native/thin3d/GLRenderManager.cpp b/ext/native/thin3d/GLRenderManager.cpp index d5ee6be8b..d15448e89 100644 --- a/ext/native/thin3d/GLRenderManager.cpp +++ b/ext/native/thin3d/GLRenderManager.cpp @@ -514,7 +514,7 @@ void GLRenderManager::WaitUntilQueueIdle() { std::unique_lock 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); }