summaryrefslogtreecommitdiffstats
path: root/src/extras/defaults/qskyboxentity_p.h
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2017-11-16 14:33:11 +0100
committerSean Harmer <sean.harmer@kdab.com>2017-11-21 09:50:50 +0000
commitbd5a98b5a283dccf00c346596c02a5739d25b09a (patch)
treedf2cf5baee397e15ffc3865a1ff79ab3039c48c9 /src/extras/defaults/qskyboxentity_p.h
parent5e94e34c5b9567980929e677357467806aacaf1a (diff)
QSkyboxEntity: try to reload texture only once
By using a queued invocation and a flag. This prevent cases where the basename would be set by a first call, with an extension not yet being set which would result in warnings. Change-Id: I385cffaf9ee262535c759109335bb3c150cc7525 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/extras/defaults/qskyboxentity_p.h')
-rw-r--r--src/extras/defaults/qskyboxentity_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/extras/defaults/qskyboxentity_p.h b/src/extras/defaults/qskyboxentity_p.h
index 88a40e2eb..945b42bf1 100644
--- a/src/extras/defaults/qskyboxentity_p.h
+++ b/src/extras/defaults/qskyboxentity_p.h
@@ -111,6 +111,7 @@ class QSkyboxEntityPrivate : public Qt3DCore::QEntityPrivate
QString m_extension;
QString m_baseName;
QVector3D m_position;
+ bool m_hasPendingReloadTextureCall;
};
} // Qt3DExtras