diff options
author | Janne Hamalainen <janne.a.hamalainen@nokia.com> | 2011-03-10 10:09:08 +0200 |
---|---|---|
committer | Janne Hamalainen <janne.a.hamalainen@nokia.com> | 2011-03-10 10:09:08 +0200 |
commit | d65cb0bbb17d21cce2823ace521dea9e53fe4988 (patch) | |
tree | bc1aac024a6587402c311d903f98327fde331495 /config.profiles/harmattan/patches/qgltexturecache.diff | |
parent | 8c25fc8fd3e54a30a03a2a8517e597e4cd26bf0d (diff) |
Added Harmattan specific debian files to master branch.
Debian packaging files added to Master branch. One
translation file was removed as it was a left over from
an old commit. Reference to it was removed from rules file.
Similar commit is done for Harmattan as well. Task: BACKEND-564
Reviewed-by: Adrian Constantin
Diffstat (limited to 'config.profiles/harmattan/patches/qgltexturecache.diff')
-rw-r--r-- | config.profiles/harmattan/patches/qgltexturecache.diff | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/config.profiles/harmattan/patches/qgltexturecache.diff b/config.profiles/harmattan/patches/qgltexturecache.diff new file mode 100644 index 0000000000..0fa8ad24a7 --- /dev/null +++ b/config.profiles/harmattan/patches/qgltexturecache.diff @@ -0,0 +1,23 @@ +Index: qt-maemo-qtp/src/opengl/qgl.cpp +=================================================================== +--- qt-maemo-qtp.orig/src/opengl/qgl.cpp ++++ qt-maemo-qtp/src/opengl/qgl.cpp +@@ -1831,18 +1831,6 @@ + void QGLTextureCache::insert(QGLContext* ctx, qint64 key, QGLTexture* texture, int cost) + { + QWriteLocker locker(&m_lock); +- if (m_cache.totalCost() + cost > m_cache.maxCost()) { +- // the cache is full - make an attempt to remove something +- const QList<QGLTextureCacheKey> keys = m_cache.keys(); +- int i = 0; +- while (i < m_cache.count() +- && (m_cache.totalCost() + cost > m_cache.maxCost())) { +- QGLTexture *tex = m_cache.object(keys.at(i)); +- if (tex->context == ctx) +- m_cache.remove(keys.at(i)); +- ++i; +- } +- } + const QGLTextureCacheKey cacheKey = {key, QGLContextPrivate::contextGroup(ctx)}; + m_cache.insert(cacheKey, texture, cost); + } |