diff options
author | Juan José Casafranca <juan.casafranca@kdab.com> | 2020-11-05 13:09:02 +0100 |
---|---|---|
committer | Juan José Casafranca <juan.casafranca@kdab.com> | 2020-11-05 14:41:54 +0100 |
commit | 8f92fe15888620cc8983d4195ac046717f06f8c6 (patch) | |
tree | a496d79ff9c7b60259d690f953c0b24eb98a151a | |
parent | 279c76641a0ab0f4573789c905a836980bbe7325 (diff) |
Fix taking pending texture data updates
Change-Id: Iea9fee79797bf005938d13436d83726c1c7c837a
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
-rw-r--r-- | src/render/texture/texture_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render/texture/texture_p.h b/src/render/texture/texture_p.h index a19ad8581..ecf924996 100644 --- a/src/render/texture/texture_p.h +++ b/src/render/texture/texture_p.h @@ -159,7 +159,8 @@ public: void cleanup(); void addTextureDataUpdate(const QTextureDataUpdate &update); - std::vector<QTextureDataUpdate> &&takePendingTextureDataUpdates() { return std::move(m_pendingTextureDataUpdates); } + std::vector<QTextureDataUpdate> takePendingTextureDataUpdates() { + return std::exchange(m_pendingTextureDataUpdates, {}); } void syncFromFrontEnd(const Qt3DCore::QNode *frontEnd, bool firstTime) override; |