Commented confusing QWriteLocker use in QGLTextureCache::getTexture().
Task-number: QTBUG-22560 Change-Id: Idd3948455e8415473a407f66b628418c0d87898d Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
This commit is contained in:
parent
6133c8a9e7
commit
171938ce1a
@ -504,6 +504,7 @@ int QGLTextureCache::maxCost()
|
||||
|
||||
QGLTexture* QGLTextureCache::getTexture(QGLContext *ctx, qint64 key)
|
||||
{
|
||||
// Can't be a QReadLocker since QCache::object() modifies the cache (reprioritizes the object)
|
||||
QWriteLocker locker(&m_lock);
|
||||
const QGLTextureCacheKey cacheKey = {key, QGLContextPrivate::contextGroup(ctx)};
|
||||
return m_cache.object(cacheKey);
|
||||
|
Loading…
Reference in New Issue
Block a user