diff options
author | McCabe Maxsted | 2009-06-12 04:10:14 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-06-12 04:10:14 -0700 |
commit | ec51c2a4cf814686c16a1637799d7c753c4f2d9f (patch) | |
tree | 9c4ccecf75de5bffe27353ebfebaeb34009dfdd5 | |
parent | Double clicking inventory objects toggles wear/detach. Patch originally by Ni... (diff) | |
download | meta-impy-ec51c2a4cf814686c16a1637799d7c753c4f2d9f.zip meta-impy-ec51c2a4cf814686c16a1637799d7c753c4f2d9f.tar.gz meta-impy-ec51c2a4cf814686c16a1637799d7c753c4f2d9f.tar.bz2 meta-impy-ec51c2a4cf814686c16a1637799d7c753c4f2d9f.tar.xz |
Applied patch by Robin Cornelius for VWR-12686: LLTextureCache::writeToCache() does not cache textures smaller than TEXTURE_CACHE_ENTRY_SIZE
-rw-r--r-- | ChangeLog.txt | 7 | ||||
-rw-r--r-- | linden/indra/newview/lltexturecache.cpp | 20 |
2 files changed, 14 insertions, 13 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index 23a1c16..cc78998 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -1,3 +1,10 @@ | |||
1 | 2009-06-12 McCabe Maxsted <hakushakukun@gmail.com> | ||
2 | |||
3 | * Applied patch by Robin Cornelius for VWR-12686: | ||
4 | LLTextureCache::writeToCache() does not cache textures smaller than TEXTURE_CACHE_ENTRY_SIZE | ||
5 | |||
6 | modified: linden/indra/newview/lltexturecache.cpp | ||
7 | |||
1 | 2009-06-11 McCabe Maxsted <hakushakukun@gmail.com> | 8 | 2009-06-11 McCabe Maxsted <hakushakukun@gmail.com> |
2 | 9 | ||
3 | * Moved 'Duplicate' to the Tools menu. | 10 | * Moved 'Duplicate' to the Tools menu. |
diff --git a/linden/indra/newview/lltexturecache.cpp b/linden/indra/newview/lltexturecache.cpp index ec5cf78..94a5372 100644 --- a/linden/indra/newview/lltexturecache.cpp +++ b/linden/indra/newview/lltexturecache.cpp | |||
@@ -1527,19 +1527,13 @@ LLTextureCache::handle_t LLTextureCache::writeToCache(const LLUUID& id, U32 prio | |||
1527 | purgeTextureFilesTimeSliced(); // purge textures from cache in a non-hiccup-way | 1527 | purgeTextureFilesTimeSliced(); // purge textures from cache in a non-hiccup-way |
1528 | 1528 | ||
1529 | 1529 | ||
1530 | if (datasize >= TEXTURE_CACHE_ENTRY_SIZE) | 1530 | LLMutexLock lock(&mWorkersMutex); |
1531 | { | 1531 | LLTextureCacheWorker* worker = new LLTextureCacheRemoteWorker(this, priority, id, |
1532 | LLMutexLock lock(&mWorkersMutex); | 1532 | data, datasize, 0, |
1533 | llassert_always(imagesize > 0); | 1533 | imagesize, responder); |
1534 | LLTextureCacheWorker* worker = new LLTextureCacheRemoteWorker(this, priority, id, | 1534 | handle_t handle = worker->write(); |
1535 | data, datasize, 0, | 1535 | mWriters[handle] = worker; |
1536 | imagesize, responder); | 1536 | return handle; |
1537 | handle_t handle = worker->write(); | ||
1538 | mWriters[handle] = worker; | ||
1539 | return handle; | ||
1540 | } | ||
1541 | delete responder; | ||
1542 | return LLWorkerThread::nullHandle(); | ||
1543 | } | 1537 | } |
1544 | 1538 | ||
1545 | bool LLTextureCache::writeComplete(handle_t handle, bool abort) | 1539 | bool LLTextureCache::writeComplete(handle_t handle, bool abort) |