From b7cc1932f1ea9a63b9c88773740f9d3234dd5a0e Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Tue, 5 Apr 2011 00:23:53 +0200 Subject: [PATCH] VWR-24321: fix validation of textures that start with 00, patch by Aleric Inglewood --- indra/newview/lltexturecache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/lltexturecache.cpp b/indra/newview/lltexturecache.cpp index 8873821ef..1716b5c5d 100644 --- a/indra/newview/lltexturecache.cpp +++ b/indra/newview/lltexturecache.cpp @@ -1609,7 +1609,7 @@ void LLTextureCache::purgeTextures(bool validate) if (validate) { validate_idx = gSavedSettings.getU32("CacheValidateCounter"); - U32 next_idx = (++validate_idx) % 256; + U32 next_idx = (validate_idx + 1) % 256; gSavedSettings.setU32("CacheValidateCounter", next_idx); LL_DEBUGS("TextureCache") << "TEXTURE CACHE: Validating: " << validate_idx << LL_ENDL; }