Enable Irrlicht debug logging with --trace

This commit is contained in:
sfan5 2021-03-12 20:23:11 +01:00
parent 1bc85a47cb
commit 051bc9e662

@ -118,6 +118,8 @@ RenderingEngine::RenderingEngine(IEventReceiver *receiver)
} }
SIrrlichtCreationParameters params = SIrrlichtCreationParameters(); SIrrlichtCreationParameters params = SIrrlichtCreationParameters();
if (g_logger.getTraceEnabled())
params.LoggingLevel = irr::ELL_DEBUG;
params.DriverType = driverType; params.DriverType = driverType;
params.WindowSize = core::dimension2d<u32>(screen_w, screen_h); params.WindowSize = core::dimension2d<u32>(screen_w, screen_h);
params.Bits = bits; params.Bits = bits;