Add a Q_DECLARE_METATYPE in TextureCache.

There was a missing declaration that was causing an assert in the
Qt meta-object system on startup in debug builds:

Q_DECLARE_METATYPE(QWeakPointer<NetworkTexture>)

Bug fixed by Clement.
This commit is contained in:
Simon Walton 2018-02-22 17:29:06 -08:00
parent a0a12258bf
commit 63e2084395

View file

@ -133,6 +133,8 @@ private:
using NetworkTexturePointer = QSharedPointer<NetworkTexture>;
Q_DECLARE_METATYPE(QWeakPointer<NetworkTexture>)
/// Stores cached textures, including render-to-texture targets.
class TextureCache : public ResourceCache, public Dependency {
Q_OBJECT