VWR-24321: fix validation of textures that start with 00, patch by Aleric Inglewood

This commit is contained in:
Siana Gearz
2011-04-05 00:23:53 +02:00
parent c17b67399b
commit b7cc1932f1

View File

@@ -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;
}