Bring back minimap.
This commit is contained in:
parent
847ceca671
commit
ce12ebe9ce
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user