summaryrefslogtreecommitdiffstats
path: root/src/render/texture/qtexture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/texture/qtexture.cpp')
-rw-r--r--src/render/texture/qtexture.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/render/texture/qtexture.cpp b/src/render/texture/qtexture.cpp
index 10e6c327e..b91398168 100644
--- a/src/render/texture/qtexture.cpp
+++ b/src/render/texture/qtexture.cpp
@@ -1514,8 +1514,8 @@ QTextureLoader::QTextureLoader(QNode *parent)
// Regenerate the texture functor when properties we support overriding
// from QAbstractTexture get changed.
- Q_D(QTextureLoader);
- auto regenerate = [=] () {
+ auto regenerate = [this] () {
+ Q_D(QTextureLoader);
if (!notificationsBlocked()) // check the change doesn't come from the backend
d->updateGenerator();
};
@@ -1775,3 +1775,5 @@ void QSharedGLTexture::setTextureId(int id)
} // namespace Qt3DRender
QT_END_NAMESPACE
+
+#include "moc_qtexture.cpp"