diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2016-04-24 15:15:46 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2016-04-27 11:19:42 +0000 |
commit | 3ca265e8423d0af7ee5e2e793e707f669a281d94 (patch) | |
tree | a4ae0f44baafda209826f91e9a205d0a0c1abe2c /src/render/materialsystem/qtechnique.h | |
parent | 69efa162f9ac0659814968512604afde4419aa27 (diff) |
Technique use new added/removed change types
The API filter still uses cloning. We need to find a way to avoid this.
Either create a backend type or we could replace it with a Q_GADGET
and set the baclend values when the whole thing changes (rare).
Change-Id: I0039a3a374328b63dbcf2e618193fb2ea49b1b83
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/materialsystem/qtechnique.h')
-rw-r--r-- | src/render/materialsystem/qtechnique.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/materialsystem/qtechnique.h b/src/render/materialsystem/qtechnique.h index 90d0cbc5f..737bbd005 100644 --- a/src/render/materialsystem/qtechnique.h +++ b/src/render/materialsystem/qtechnique.h @@ -63,8 +63,8 @@ class QT3DRENDERSHARED_EXPORT QTechnique : public Qt3DCore::QNode public: explicit QTechnique(Qt3DCore::QNode *parent = Q_NULLPTR); - void addFilterKey(QFilterKey*criterion); - void removeFilterKey(QFilterKey*criterion); + void addFilterKey(QFilterKey *filterKey); + void removeFilterKey(QFilterKey *filterKey); QVector<QFilterKey*> filterKeys() const; void addParameter(QParameter *p); |