1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 03:40:14 +00:00

avoid redundant calls to removeInitialDrawCallback

This commit is contained in:
Mads Buvik Sandvei 2020-12-16 22:03:16 +01:00
parent 640420eaaa
commit bc961a13f5

View File

@ -366,7 +366,10 @@ namespace MWGui
mViewer->advance(mViewer->getFrameStamp()->getSimulationTime());
if (mCopyFramebufferToTextureCallback)
{
mViewer->getCamera()->removeInitialDrawCallback(mCopyFramebufferToTextureCallback);
mCopyFramebufferToTextureCallback = nullptr;
}
mLastRenderTime = mTimer.time_m();
}