diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2010-12-09 00:00:11 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2010-12-09 00:00:11 (GMT) |
commit | 7c9c4cdf6d7e6a7d5e13b546341e7b323f13b9bb (patch) | |
tree | cca03aa823ffdcccf0d207ca283201e8752880fb /src | |
parent | 50fc438d989fe9e4ecb431e2f6a5e4d1ccafbeac (diff) | |
parent | 14aea84dd16bd9778cdc5803fdfa3523d9282411 (diff) | |
download | Qt-7c9c4cdf6d7e6a7d5e13b546341e7b323f13b9bb.zip Qt-7c9c4cdf6d7e6a7d5e13b546341e7b323f13b9bb.tar.gz Qt-7c9c4cdf6d7e6a7d5e13b546341e7b323f13b9bb.tar.bz2 |
Merge branch 'master-upstream' into master-water
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/kernel/qapplication.cpp | 1 | ||||
-rw-r--r-- | src/opengl/qgl.cpp | 12 |
2 files changed, 0 insertions, 13 deletions
diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp index 833e803..b5409df 100644 --- a/src/gui/kernel/qapplication.cpp +++ b/src/gui/kernel/qapplication.cpp @@ -807,7 +807,6 @@ void QApplicationPrivate::construct( ) { initResources(); - graphics_system_name = QLatin1String(qgetenv("QT_DEFAULT_GRAPHICS_SYSTEM")); qt_is_gui_used = (qt_appType != QApplication::Tty); process_cmdline(); diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp index dc7a333..63df8c3 100644 --- a/src/opengl/qgl.cpp +++ b/src/opengl/qgl.cpp @@ -1853,18 +1853,6 @@ QGLTextureCache::~QGLTextureCache() 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); } |