diff options
author | sfan5 <sfan5@live.de> | 2021-03-12 20:23:11 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-03-12 20:56:02 +0100 |
commit | 051bc9e6624c63c3612e041644ec587b328bae55 (patch) | |
tree | e01f63b351a8bc8af85ec2ade9542f139d7efd9a | |
parent | 1bc85a47cb794a4a23cd8a2a1142aa20c1c1cfae (diff) | |
download | minetest-051bc9e6624c63c3612e041644ec587b328bae55.tar.gz minetest-051bc9e6624c63c3612e041644ec587b328bae55.tar.bz2 minetest-051bc9e6624c63c3612e041644ec587b328bae55.zip |
Enable Irrlicht debug logging with --trace
-rw-r--r-- | src/client/renderingengine.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<u32>(screen_w, screen_h); params.Bits = bits; |