summaryrefslogtreecommitdiffstats
path: root/src/quick3d/quick3dscene2d/items/scene2d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick3d/quick3dscene2d/items/scene2d.cpp')
-rw-r--r--src/quick3d/quick3dscene2d/items/scene2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick3d/quick3dscene2d/items/scene2d.cpp b/src/quick3d/quick3dscene2d/items/scene2d.cpp
index 27ab7f010..562f0d2c7 100644
--- a/src/quick3d/quick3dscene2d/items/scene2d.cpp
+++ b/src/quick3d/quick3dscene2d/items/scene2d.cpp
@@ -443,7 +443,7 @@ void Scene2D::cleanup()
}
if (m_renderThread) {
renderThreadClientCount->fetchAndSubAcquire(1);
- if (renderThreadClientCount->load() == 0)
+ if (renderThreadClientCount->loadRelaxed() == 0)
renderThread->quit();
}
}