aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgcontextplugin.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2016-07-15 13:15:42 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2016-07-15 18:03:46 +0000
commitbc2a25dfc18dbb63e404b031c82465c5d21f2775 (patch)
tree3735754113c831778d423e085dab6ec2aef2c40f /src/quick/scenegraph/qsgcontextplugin.cpp
parent0308a8379bf9106a9f6ba4c03b337905213a9f0d (diff)
Make scenegraph plugin logs and warnings work in release builds
Ifdefing with no_debug_output is a bad idea in this case, these are messages we want in any builds. Change-Id: Ic842afe9b48961fb7fb010db868f92f8e85184c3 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/quick/scenegraph/qsgcontextplugin.cpp')
-rw-r--r--src/quick/scenegraph/qsgcontextplugin.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/quick/scenegraph/qsgcontextplugin.cpp b/src/quick/scenegraph/qsgcontextplugin.cpp
index 7569cd2495..3751891455 100644
--- a/src/quick/scenegraph/qsgcontextplugin.cpp
+++ b/src/quick/scenegraph/qsgcontextplugin.cpp
@@ -136,9 +136,7 @@ QSGAdaptationBackendData *contextFactory()
#endif
if (!requestedBackend.isEmpty()) {
-#ifndef QT_NO_DEBUG
qCDebug(QSG_LOG_INFO) << "Loading backend" << requestedBackend;
-#endif
// First look for a built-in adaptation.
for (QSGContextFactoryInterface *builtInBackend : qAsConst(backendData->builtIns)) {
@@ -160,14 +158,12 @@ QSGAdaptationBackendData *contextFactory()
backendData->name = requestedBackend;
backendData->flags = backendData->factory->flags(requestedBackend);
}
-#ifndef QT_NO_DEBUG
if (!backendData->factory) {
qWarning("Could not create scene graph context for backend '%s'"
" - check that plugins are installed correctly in %s",
qPrintable(requestedBackend),
qPrintable(QLibraryInfo::location(QLibraryInfo::PluginsPath)));
}
-#endif
}
#endif // QT_NO_LIBRARY
}