aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/compressedtexture/qsgcompressedtexture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/scenegraph/compressedtexture/qsgcompressedtexture.cpp')
-rw-r--r--src/quick/scenegraph/compressedtexture/qsgcompressedtexture.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/quick/scenegraph/compressedtexture/qsgcompressedtexture.cpp b/src/quick/scenegraph/compressedtexture/qsgcompressedtexture.cpp
index 9e3cc83433..5f00da48f2 100644
--- a/src/quick/scenegraph/compressedtexture/qsgcompressedtexture.cpp
+++ b/src/quick/scenegraph/compressedtexture/qsgcompressedtexture.cpp
@@ -90,17 +90,17 @@ int QSGCompressedTexture::textureId() const
return m_textureId;
}
-int QSGCompressedTexture::comparisonKey() const
+qint64 QSGCompressedTexture::comparisonKey() const
{
// not textureId() as that would create an id when not yet done - that's not wanted here
if (m_textureId)
return m_textureId;
if (m_texture)
- return int(qintptr(m_texture));
+ return qint64(m_texture);
// two textures (and so materials) with not-yet-created texture underneath are never equal
- return int(qintptr(this));
+ return qint64(this);
}
QSize QSGCompressedTexture::textureSize() const