From 051bc9e6624c63c3612e041644ec587b328bae55 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Fri, 12 Mar 2021 20:23:11 +0100 Subject: [PATCH] Enable Irrlicht debug logging with --trace --- src/client/renderingengine.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/renderingengine.cpp b/src/client/renderingengine.cpp index 055a555ab..4f59bbae3 100644 --- a/src/client/renderingengine.cpp +++ b/src/client/renderingengine.cpp @@ -118,6 +118,8 @@ RenderingEngine::RenderingEngine(IEventReceiver *receiver) } SIrrlichtCreationParameters params = SIrrlichtCreationParameters(); + if (g_logger.getTraceEnabled()) + params.LoggingLevel = irr::ELL_DEBUG; params.DriverType = driverType; params.WindowSize = core::dimension2d(screen_w, screen_h); params.Bits = bits;