|
|
@ -44,7 +44,7 @@ namespace MWRender
|
|
|
|
void operator () (osg::RenderInfo& renderInfo) const override
|
|
|
|
void operator () (osg::RenderInfo& renderInfo) const override
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::lock_guard<std::mutex> lock(mMutex);
|
|
|
|
std::lock_guard<std::mutex> lock(mMutex);
|
|
|
|
if (renderInfo.getState()->getFrameStamp()->getFrameNumber() >= mFrame)
|
|
|
|
if (renderInfo.getState()->getFrameStamp()->getFrameNumber() >= mFrame && !mDone)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mDone = true;
|
|
|
|
mDone = true;
|
|
|
|
mCondition.notify_one();
|
|
|
|
mCondition.notify_one();
|
|
|
|