mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-12 13:37:08 +03:00
avoid redundant calls to removeInitialDrawCallback
This commit is contained in:
parent
640420eaaa
commit
bc961a13f5
1 changed files with 4 additions and 1 deletions
|
@ -366,7 +366,10 @@ namespace MWGui
|
|||
mViewer->advance(mViewer->getFrameStamp()->getSimulationTime());
|
||||
|
||||
if (mCopyFramebufferToTextureCallback)
|
||||
{
|
||||
mViewer->getCamera()->removeInitialDrawCallback(mCopyFramebufferToTextureCallback);
|
||||
mCopyFramebufferToTextureCallback = nullptr;
|
||||
}
|
||||
|
||||
mLastRenderTime = mTimer.time_m();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue