aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/util/qsgopenglatlastexture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/scenegraph/util/qsgopenglatlastexture.cpp')
-rw-r--r--src/quick/scenegraph/util/qsgopenglatlastexture.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/scenegraph/util/qsgopenglatlastexture.cpp b/src/quick/scenegraph/util/qsgopenglatlastexture.cpp
index 94f77c8a08..f9bc0a552c 100644
--- a/src/quick/scenegraph/util/qsgopenglatlastexture.cpp
+++ b/src/quick/scenegraph/util/qsgopenglatlastexture.cpp
@@ -522,7 +522,7 @@ TextureBase::~TextureBase()
m_atlas->remove(this);
}
-int TextureBase::comparisonKey() const
+qint64 TextureBase::comparisonKey() const
{
// We need special care here: a typical comparisonKey() implementation
// returns a unique result when there is no underlying texture yet. This is
@@ -532,7 +532,7 @@ int TextureBase::comparisonKey() const
// base the comparison on the atlas ptr; this way textures for the same
// atlas are considered equal
- return int(qintptr(m_atlas));
+ return qint64(m_atlas);
}
void TextureBase::bind()