Added draw policy information in the log.

This commit is contained in:
Elderme 2016-06-25 22:14:14 +02:00
parent 4c00d98001
commit 12155ef8ee

View File

@ -631,11 +631,20 @@ ShaderBasedRenderer::ShaderBasedRenderer()
m_nb_static_glowing = 0;
if (CVS->isAZDOEnabled())
{
m_geometry_passes = new GeometryPasses<MultidrawPolicy>();
Log::info("ShaderBasedRenderer", "Geometry will be rendered with multidraw policy.");
}
else if (CVS->supportsIndirectInstancingRendering())
{
m_geometry_passes = new GeometryPasses<IndirectDrawPolicy>();
Log::info("ShaderBasedRenderer", "Geometry will be rendered with indirect draw policy.");
}
else
{
m_geometry_passes = new GeometryPasses<GL3DrawPolicy>();
Log::info("ShaderBasedRenderer", "Geometry will be rendered with GL3 policy.");
}
m_post_processing = new PostProcessing(irr_driver->getVideoDriver());
}