summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2010-12-09 00:00:11 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2010-12-09 00:00:11 (GMT)
commit7c9c4cdf6d7e6a7d5e13b546341e7b323f13b9bb (patch)
treecca03aa823ffdcccf0d207ca283201e8752880fb /src
parent50fc438d989fe9e4ecb431e2f6a5e4d1ccafbeac (diff)
parent14aea84dd16bd9778cdc5803fdfa3523d9282411 (diff)
downloadQt-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.cpp1
-rw-r--r--src/opengl/qgl.cpp12
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);
}