From 0025f908db7fd236d775b0dfa905cc1624ffb88c Mon Sep 17 00:00:00 2001 From: Marianne Gagnon Date: Mon, 20 Oct 2014 20:38:37 -0400 Subject: [PATCH] Add cleanup post-minimap-RTT. Appears to fix #1470 . Hard to know for sure since this bug is random :( --- src/tracks/quad_graph.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/tracks/quad_graph.cpp b/src/tracks/quad_graph.cpp index a8198cdd1..638608adc 100644 --- a/src/tracks/quad_graph.cpp +++ b/src/tracks/quad_graph.cpp @@ -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 //-----------------------------------------------------------------------------