fix wrong condition of cv

This commit is contained in:
falsycat 2022-11-20 12:59:27 +09:00
parent 31924ce5b2
commit 74207a0b63

View File

@ -200,7 +200,7 @@ void GLThread(GLFWwindow* window) noexcept {
glfwMakeContextCurrent(nullptr);
k.lock();
cycle_cv_.wait(k, []() { return cycle_ != kDraw || !glq_.idle(); });
cycle_cv_.wait(k, []() { return cycle_ == kSyncDraw || !glq_.idle(); });
if (cycle_ == kSyncDraw) {
// tell the main thread to start GUI drawing
cycle_ = kDraw;