summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@digia.com>2014-09-01 13:36:10 +0200
committerLars Knoll <lars.knoll@digia.com>2014-09-01 14:46:20 +0300
commitb97e65a9767941c292b17e96d276c803571af9ab (patch)
tree8e955f2e5593a03fe8ab838cbe182b7156bba9f1
parent47ad428befff796faf2f3bc7bff94f06fad9c2e1 (diff)
Add path for QQuickShaderEffectNode
We can not easily determine what to render in this case so for now we do not render anything, but at least now we do not hit Q_UNREACHABLE when iterating through the scene graph. Change-Id: Ia6cc4be35ba4d977ffc7b52f6370539a0443c63b Reviewed-by: Lars Knoll <lars.knoll@digia.com>
-rw-r--r--softwarecontext/renderingvisitor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/softwarecontext/renderingvisitor.cpp b/softwarecontext/renderingvisitor.cpp
index 869ca6d49e..879c30eb4f 100644
--- a/softwarecontext/renderingvisitor.cpp
+++ b/softwarecontext/renderingvisitor.cpp
@@ -29,6 +29,7 @@
#include <QtQuick/QSGSimpleRectNode>
#include <QtQuick/qsgsimpletexturenode.h>
#include <private/qsgtexture_p.h>
+#include <private/qquickshadereffectnode_p.h>
RenderingVisitor::RenderingVisitor(QPainter *painter)
: painter(painter)
@@ -78,6 +79,8 @@ bool RenderingVisitor::visit(QSGGeometryNode *node)
} else {
Q_UNREACHABLE();
}
+ } else if (QQuickShaderEffectNode *sn = dynamic_cast<QQuickShaderEffectNode *>(node)) {
+ Q_UNUSED(sn)
} else {
Q_UNREACHABLE();
}