summaryrefslogtreecommitdiffstats
path: root/src/render/framegraph/sortpolicy.cpp
diff options
context:
space:
mode:
authorKevin Ottens <kevin.ottens@kdab.com>2016-08-08 13:58:49 +0200
committerSean Harmer <sean.harmer@kdab.com>2016-08-08 12:02:04 +0000
commitc3e3f8ccf6f5a2f4439b0d083cf38df8423425bf (patch)
tree707dbf4266aae7f615bb84b4628b04795d3bfb3c /src/render/framegraph/sortpolicy.cpp
parent98279960e47d62411d04aa76c9ba1e7850962649 (diff)
Fix SortPolicy backend node parenting
Also comes with unit tests showing the bug and testing the basic SortPolicy node behavior. Change-Id: Ied522dcce4faaa7c6750c289f6aafb18f92ffc74 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/framegraph/sortpolicy.cpp')
-rw-r--r--src/render/framegraph/sortpolicy.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/render/framegraph/sortpolicy.cpp b/src/render/framegraph/sortpolicy.cpp
index 628fa75e4..9631ebeab 100644
--- a/src/render/framegraph/sortpolicy.cpp
+++ b/src/render/framegraph/sortpolicy.cpp
@@ -74,6 +74,7 @@ QVector<QSortPolicy::SortType> SortPolicy::sortTypes() const
void SortPolicy::initializeFromPeer(const QNodeCreatedChangeBasePtr &change)
{
+ FrameGraphNode::initializeFromPeer(change);
const auto typedChange = qSharedPointerCast<Qt3DCore::QNodeCreatedChange<QSortPolicyData>>(change);
const QSortPolicyData &data = typedChange->data;
m_sortTypes = data.sortTypes;