From 12155ef8ee35357fdb32bcc750369c35f1bcb1b8 Mon Sep 17 00:00:00 2001 From: Elderme Date: Sat, 25 Jun 2016 22:14:14 +0200 Subject: [PATCH] Added draw policy information in the log. --- src/graphics/shader_based_renderer.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/graphics/shader_based_renderer.cpp b/src/graphics/shader_based_renderer.cpp index b3d4842e7..18bb1cbc8 100644 --- a/src/graphics/shader_based_renderer.cpp +++ b/src/graphics/shader_based_renderer.cpp @@ -631,11 +631,20 @@ ShaderBasedRenderer::ShaderBasedRenderer() m_nb_static_glowing = 0; if (CVS->isAZDOEnabled()) + { m_geometry_passes = new GeometryPasses(); + Log::info("ShaderBasedRenderer", "Geometry will be rendered with multidraw policy."); + } else if (CVS->supportsIndirectInstancingRendering()) + { m_geometry_passes = new GeometryPasses(); + Log::info("ShaderBasedRenderer", "Geometry will be rendered with indirect draw policy."); + } else + { m_geometry_passes = new GeometryPasses(); + Log::info("ShaderBasedRenderer", "Geometry will be rendered with GL3 policy."); + } m_post_processing = new PostProcessing(irr_driver->getVideoDriver()); }