added an override for map preview rendering to use legacy non FBO code:

LegacyMapPreviewRendering=true
This commit is contained in:
Mark Vejvoda 2011-11-08 16:41:10 +00:00
parent c8649f8cd1
commit 9f316bef08
1 changed files with 4 additions and 0 deletions

View File

@ -6735,6 +6735,10 @@ void Renderer::renderMapPreview( const MapPreview *map, bool renderAll,
Texture2D **renderToTexture) {
static bool supportFBOs = Texture2DGl().supports_FBO_RBO();
if(Config::getInstance().getBool("LegacyMapPreviewRendering","false") == true) {
supportFBOs = false;
}
//static bool supportFBOs = false;
const Metrics &metrics= Metrics::getInstance();