Add cleanup post-minimap-RTT. Appears to fix #1470 . Hard to know for sure since this bug is random :(

This commit is contained in:
Marianne Gagnon 2014-10-20 20:38:37 -04:00
parent d3ba39b130
commit 0025f908db

View File

@ -1104,6 +1104,13 @@ void QuadGraph::makeMiniMap(const core::dimension2du &dimension,
*newRttMinimap = frame_buffer;
World::getWorld()->setClearbackBufferColor(oldClearColor);
World::getWorld()->forceFogDisabled(false);
irr_driver->getSceneManager()->clear();
VAOManager::kill();
irr_driver->clearGlowingNodes();
irr_driver->clearLights();
irr_driver->clearForcedBloom();
irr_driver->clearBackgroundNodes();
} // makeMiniMap
//-----------------------------------------------------------------------------