mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 15:35:23 +00:00
avoid redundant calls to removeInitialDrawCallback
This commit is contained in:
parent
640420eaaa
commit
bc961a13f5
@ -365,8 +365,11 @@ namespace MWGui
|
||||
mViewer->renderingTraversals();
|
||||
mViewer->advance(mViewer->getFrameStamp()->getSimulationTime());
|
||||
|
||||
if(mCopyFramebufferToTextureCallback)
|
||||
if (mCopyFramebufferToTextureCallback)
|
||||
{
|
||||
mViewer->getCamera()->removeInitialDrawCallback(mCopyFramebufferToTextureCallback);
|
||||
mCopyFramebufferToTextureCallback = nullptr;
|
||||
}
|
||||
|
||||
mLastRenderTime = mTimer.time_m();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user