diff options
-rw-r--r-- | src/render/texture/qabstracttexture.cpp | 1 | ||||
-rw-r--r-- | src/render/texture/qabstracttexture_p.h | 1 | ||||
-rw-r--r-- | src/render/texture/texture.cpp | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/render/texture/qabstracttexture.cpp b/src/render/texture/qabstracttexture.cpp index 823f9dd13..3cc7177f8 100644 --- a/src/render/texture/qabstracttexture.cpp +++ b/src/render/texture/qabstracttexture.cpp @@ -63,6 +63,7 @@ QAbstractTexturePrivate::QAbstractTexturePrivate() , m_comparisonMode(QAbstractTexture::CompareNone) , m_layers(1) , m_samples(1) + , m_mipmapLevels(1) , m_sharedTextureId(-1) , m_handleType(QAbstractTexture::NoHandle) , m_handle(QVariant()) diff --git a/src/render/texture/qabstracttexture_p.h b/src/render/texture/qabstracttexture_p.h index 7939c6c6d..c85b4584b 100644 --- a/src/render/texture/qabstracttexture_p.h +++ b/src/render/texture/qabstracttexture_p.h @@ -87,6 +87,7 @@ public : QList<QAbstractTextureImage *> m_textureImages; int m_layers; int m_samples; + int m_mipmapLevels; int m_sharedTextureId; diff --git a/src/render/texture/texture.cpp b/src/render/texture/texture.cpp index df444b5bd..956d44a9e 100644 --- a/src/render/texture/texture.cpp +++ b/src/render/texture/texture.cpp @@ -124,6 +124,7 @@ void Texture::syncFromFrontEnd(const QNode *frontEnd, bool firstTime) p.generateMipMaps = node->generateMipMaps(); p.layers = node->layers(); p.samples = node->samples(); + p.mipLevels = static_cast<const QAbstractTexturePrivate*>(QAbstractTexturePrivate::get(node))->m_mipmapLevels; if (p != m_properties) { m_properties = p; addDirtyFlag(DirtyProperties); |