summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@digia.com>2014-09-23 15:43:51 +0200
committerAndy Nichols <andy.nichols@digia.com>2014-09-30 11:34:09 +0300
commit890794e62da239af9a2a76869727310dc7ae5716 (patch)
tree9befd08dbe676b05df3353e9e500c4a109b4de5a
parent977ef099b21031363e0d0b9b04d77f373c4dd03b (diff)
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 <andy.nichols@digia.com>
-rw-r--r--src/plugins/scenegraph/softwarecontext/renderingvisitor.cpp4
1 files changed, 2 insertions, 2 deletions
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<QQuickShaderEffectNode *>(node)) {
Q_UNUSED(sn)
} else {
- Q_UNREACHABLE();
+ //Do nothing
}
return true;
}