mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-16 08:29:15 +01:00
LP-362 enable osg log redirection to Qt
This commit is contained in:
parent
54b33e0a07
commit
026ef32f73
@ -71,9 +71,9 @@ void OsgEarth::registerQmlTypes()
|
|||||||
}
|
}
|
||||||
registered = true;
|
registered = true;
|
||||||
|
|
||||||
// redirect osg logging to Qt (and export OSG_NOTIFY_LEVEL=DEBUG to enable osg logging)
|
// use "export OSG_NOTIFY_LEVEL=DEBUG" on command line to enable osg logging
|
||||||
// Note : enabling the notify handler seems to cause crashes (the notifier is probably not thread safe)
|
// redirect osg logging to Qt
|
||||||
// osg::setNotifyHandler(new QtNotifyHandler());
|
osg::setNotifyHandler(new QtNotifyHandler());
|
||||||
|
|
||||||
// initialize();
|
// initialize();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user