mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 07:23:51 +00:00
avoid redundant calls to removeInitialDrawCallback
This commit is contained in:
parent
640420eaaa
commit
bc961a13f5
1 changed files with 4 additions and 1 deletions
|
@ -365,8 +365,11 @@ namespace MWGui
|
||||||
mViewer->renderingTraversals();
|
mViewer->renderingTraversals();
|
||||||
mViewer->advance(mViewer->getFrameStamp()->getSimulationTime());
|
mViewer->advance(mViewer->getFrameStamp()->getSimulationTime());
|
||||||
|
|
||||||
if(mCopyFramebufferToTextureCallback)
|
if (mCopyFramebufferToTextureCallback)
|
||||||
|
{
|
||||||
mViewer->getCamera()->removeInitialDrawCallback(mCopyFramebufferToTextureCallback);
|
mViewer->getCamera()->removeInitialDrawCallback(mCopyFramebufferToTextureCallback);
|
||||||
|
mCopyFramebufferToTextureCallback = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
mLastRenderTime = mTimer.time_m();
|
mLastRenderTime = mTimer.time_m();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue