From 890794e62da239af9a2a76869727310dc7ae5716 Mon Sep 17 00:00:00 2001 From: Andy Nichols Date: Tue, 23 Sep 2014 15:43:51 +0200 Subject: Remove Q_UNREACHABLE from RenderingVisitor There will be times when we hit custom QSGGeometry nodes where we won't be able to render them. Rather than crashing, just ignore them. The Q_UNREACHABLE macro was more for the development phase anyway. Change-Id: I4962cab17b8b3399e081dba58c3a7c4dd988de8f Reviewed-by: Andy Nichols --- src/plugins/scenegraph/softwarecontext/renderingvisitor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/scenegraph/softwarecontext') diff --git a/src/plugins/scenegraph/softwarecontext/renderingvisitor.cpp b/src/plugins/scenegraph/softwarecontext/renderingvisitor.cpp index 153edce3be..bcec035939 100644 --- a/src/plugins/scenegraph/softwarecontext/renderingvisitor.cpp +++ b/src/plugins/scenegraph/softwarecontext/renderingvisitor.cpp @@ -77,12 +77,12 @@ bool RenderingVisitor::visit(QSGGeometryNode *node) const QImage &im = pt->image(); painter->drawImage(tn->rect(), im, QRectF(0, 0, im.width(), im.height())); } else { - Q_UNREACHABLE(); + //Do nothing } } else if (QQuickShaderEffectNode *sn = dynamic_cast(node)) { Q_UNUSED(sn) } else { - Q_UNREACHABLE(); + //Do nothing } return true; } -- cgit v1.2.3