Override clear color inside makeMiniMap

Track clear color was used, resulting in wrong alpha channel value.
This commit is contained in:
Vincent Lejeune 2014-06-23 14:54:16 +02:00
parent 1a8b35c796
commit 4d6aa9d942

View File

@ -976,6 +976,8 @@ void QuadGraph::makeMiniMap(const core::dimension2du &dimension,
video::ITexture** oldRttMinimap,
FrameBuffer** newRttMinimap)
{
const SColor oldClearColor = World::getWorld()->getClearColor();
World::getWorld()->setClearbackBufferColor(SColor(0, 255, 255, 255));
*oldRttMinimap = NULL;
*newRttMinimap = NULL;
@ -1091,6 +1093,7 @@ void QuadGraph::makeMiniMap(const core::dimension2du &dimension,
*oldRttMinimap = texture;
*newRttMinimap = frame_buffer;
World::getWorld()->setClearbackBufferColor(oldClearColor);
} // makeMiniMap
//-----------------------------------------------------------------------------