1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

LP-362 enable osg log redirection to Qt

This commit is contained in:
Philippe Renon 2016-07-21 01:51:55 +02:00
parent 54b33e0a07
commit 026ef32f73

View File

@ -71,9 +71,9 @@ void OsgEarth::registerQmlTypes()
}
registered = true;
// redirect osg logging to Qt (and export OSG_NOTIFY_LEVEL=DEBUG to enable osg logging)
// Note : enabling the notify handler seems to cause crashes (the notifier is probably not thread safe)
// osg::setNotifyHandler(new QtNotifyHandler());
// use "export OSG_NOTIFY_LEVEL=DEBUG" on command line to enable osg logging
// redirect osg logging to Qt
osg::setNotifyHandler(new QtNotifyHandler());
// initialize();