mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
LP-29 start silencing osg debug output
This commit is contained in:
parent
913d9d2cb0
commit
911e3118f5
@ -107,7 +107,9 @@ void OsgEarth::initialize()
|
|||||||
|
|
||||||
initializeCache();
|
initializeCache();
|
||||||
|
|
||||||
|
#ifdef OSG_VERBOSE
|
||||||
displayInfo();
|
displayInfo();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void OsgEarth::initializePathes()
|
void OsgEarth::initializePathes()
|
||||||
|
@ -2,7 +2,7 @@ TEMPLATE = lib
|
|||||||
TARGET = GCSOsgEarth
|
TARGET = GCSOsgEarth
|
||||||
DEFINES += OSGEARTH_LIBRARY
|
DEFINES += OSGEARTH_LIBRARY
|
||||||
|
|
||||||
#CONFIG += mys2
|
#DEFINES += OSG_VERBOSE
|
||||||
|
|
||||||
osg:DEFINES += USE_OSG
|
osg:DEFINES += USE_OSG
|
||||||
osgQt:DEFINES += USE_OSG_QT
|
osgQt:DEFINES += USE_OSG_QT
|
||||||
|
@ -116,7 +116,7 @@ GraphicsWindowQt::~GraphicsWindowQt()
|
|||||||
|
|
||||||
void GraphicsWindowQt::init()
|
void GraphicsWindowQt::init()
|
||||||
{
|
{
|
||||||
qDebug() << "GraphicsWindowQt::init";
|
// qDebug() << "GraphicsWindowQt::init";
|
||||||
if (_closing || _initialized) {
|
if (_closing || _initialized) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -199,7 +199,7 @@ bool GraphicsWindowQt::valid() const
|
|||||||
|
|
||||||
bool GraphicsWindowQt::realizeImplementation()
|
bool GraphicsWindowQt::realizeImplementation()
|
||||||
{
|
{
|
||||||
qDebug() << "GraphicsWindowQt::realizeImplementation";
|
// qDebug() << "GraphicsWindowQt::realizeImplementation";
|
||||||
// save the current context
|
// save the current context
|
||||||
// note: this will save only Qt-based contexts
|
// note: this will save only Qt-based contexts
|
||||||
|
|
||||||
@ -224,7 +224,9 @@ bool GraphicsWindowQt::realizeImplementation()
|
|||||||
_surface = new QOffscreenSurface();
|
_surface = new QOffscreenSurface();
|
||||||
_surface->setFormat(_glContext->format());
|
_surface->setFormat(_glContext->format());
|
||||||
_surface->create();
|
_surface->create();
|
||||||
|
#ifdef OSG_VERBOSE
|
||||||
osgQtQuick::formatInfo(_surface->format());
|
osgQtQuick::formatInfo(_surface->format());
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
qDebug() << "GraphicsWindowQt::realizeImplementation - using current context";
|
qDebug() << "GraphicsWindowQt::realizeImplementation - using current context";
|
||||||
_glContext = currentContext;
|
_glContext = currentContext;
|
||||||
|
Loading…
Reference in New Issue
Block a user