diff options
Diffstat (limited to 'src/quick/scenegraph/util/qsgplaintexture.cpp')
-rw-r--r-- | src/quick/scenegraph/util/qsgplaintexture.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/quick/scenegraph/util/qsgplaintexture.cpp b/src/quick/scenegraph/util/qsgplaintexture.cpp index 93448d7738..35d204fed2 100644 --- a/src/quick/scenegraph/util/qsgplaintexture.cpp +++ b/src/quick/scenegraph/util/qsgplaintexture.cpp @@ -304,17 +304,17 @@ void QSGPlainTexture::setTextureFromNativeObject(QRhi *rhi, QQuickWindow::Native setTexture(t); } -int QSGPlainTexture::comparisonKey() const +qint64 QSGPlainTexture::comparisonKey() const { // not textureId() as that would create an id when not yet done - that's not wanted here if (m_texture_id) return m_texture_id; 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); } QRhiTexture *QSGPlainTexture::rhiTexture() const |