diff options
author | Mike Krus <mike.krus@kdab.com> | 2021-01-06 15:27:29 +0000 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-01-08 12:31:41 +0000 |
commit | 9e899216140f8a279be9038ab2a942334ff1e03c (patch) | |
tree | db4ee07236743e513d26f70623e2a24401aae597 | |
parent | cf5e7b0dc88cb3ce8522bec3f9ebccbda274380c (diff) |
Categorise warnings
Change-Id: I3b074a02ff47e33472d9506c6dccab281f555e74
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
(cherry picked from commit eee0fca4abc800883dde40559290403e7e550d14)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/plugins/renderers/rhi/graphicshelpers/submissioncontext.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/renderers/rhi/graphicshelpers/submissioncontext.cpp b/src/plugins/renderers/rhi/graphicshelpers/submissioncontext.cpp index 0126dbe17..1121c7041 100644 --- a/src/plugins/renderers/rhi/graphicshelpers/submissioncontext.cpp +++ b/src/plugins/renderers/rhi/graphicshelpers/submissioncontext.cpp @@ -166,7 +166,7 @@ void applyStateHelper(const GenericState *state, QRhiGraphicsPipeline *gp) noexc { Q_UNUSED(state); Q_UNUSED(gp); - qWarning() << "RHI Unhandled render state" << typeid(GenericState).name(); + qCWarning(Backend) << "RHI Unhandled render state" << typeid(GenericState).name(); } void applyStateHelper(const BlendEquationArguments *state, QRhiGraphicsPipeline *gp) noexcept @@ -331,7 +331,7 @@ void applyStateHelper(const CullFace *state, QRhiGraphicsPipeline *gp) noexcept gp->setCullMode(QRhiGraphicsPipeline::Back); break; case QCullFace::FrontAndBack: - qWarning() << "RHI doesn't handle FrontAndBack CullFace"; + qCWarning(Backend) << "RHI doesn't handle FrontAndBack CullFace"; break; } } @@ -610,7 +610,7 @@ void SubmissionContext::initialize() } if (requestedApi != Qt3DRender::API::OpenGL && m_rhi == nullptr) { - qWarning() << "RHI: Unable to use requested RHI Api, trying to fall back on OpenGL"; + qCWarning(Backend) << "RHI: Unable to use requested RHI Api, trying to fall back on OpenGL"; requestedApi = Qt3DRender::API::OpenGL; } @@ -623,7 +623,7 @@ void SubmissionContext::initialize() m_rhi = QRhi::create(QRhi::OpenGLES2, ¶ms, rhiFlags); qCWarning(Backend) << "Initializing RHI with OpenGL backend"; #else - qWarning() << "RHI: OpenGL not supported"; + qCWarning(Backend) << "RHI: OpenGL not supported"; #endif } |