Bring back minimap.

This commit is contained in:
Vincent Lejeune 2014-03-15 20:05:04 +01:00
parent 847ceca671
commit ce12ebe9ce

View File

@ -1056,25 +1056,6 @@ video::ITexture *QuadGraph::makeMiniMap(const core::dimension2du &origdimension,
return NULL;
}
if (!irr_driver->isGLSL())
return texture;
GaussianBlurProvider * const gacb = (GaussianBlurProvider *) irr_driver->getCallback(ES_GAUSSIAN3H);
gacb->setResolution(UserConfigParams::m_width, UserConfigParams::m_height);
ScreenQuad sq(irr_driver->getVideoDriver());
sq.getMaterial().MaterialType = irr_driver->getShader(ES_GAUSSIAN3H);
sq.setTexture(texture);
// Horizontal pass
sq.render(irr_driver->getRTT(RTT_TMP1));
// Vertical pass
sq.getMaterial().MaterialType = irr_driver->getShader(ES_GAUSSIAN3V);
sq.setTexture(irr_driver->getRTT(RTT_TMP1));
sq.render(texture);
return texture;
} // makeMiniMap