summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authorJuan José Casafranca <juan.casafranca@kdab.com>2020-11-05 13:09:02 +0100
committerJuan José Casafranca <juan.casafranca@kdab.com>2020-11-05 14:41:54 +0100
commit8f92fe15888620cc8983d4195ac046717f06f8c6 (patch)
treea496d79ff9c7b60259d690f953c0b24eb98a151a /src/render
parent279c76641a0ab0f4573789c905a836980bbe7325 (diff)
Fix taking pending texture data updates
Change-Id: Iea9fee79797bf005938d13436d83726c1c7c837a Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render')
-rw-r--r--src/render/texture/texture_p.h3
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;