Added explicit texture reloading. Accessable in the 'tools' submenus for the agent, avatars, and selected objects.

This commit is contained in:
Shyotl
2012-12-02 17:06:54 -06:00
parent 8b19f82c0b
commit 0554ecae5c
9 changed files with 156 additions and 5 deletions

View File

@@ -392,9 +392,7 @@ void LLDrawPoolWater::renderOpaqueLegacyWater()
if(sRefetch)
{
sRefetch = false;
gTextureList.deleteImage(gTextureList.findImage( mOpaqueWaterImagep->getID() ));
mOpaqueWaterImagep = NULL;
mOpaqueWaterImagep = LLViewerTextureManager::getFetchedTexture(OPAQUE_WATER_TEXTURE);
((LLViewerFetchedTexture*)mOpaqueWaterImagep.get())->forceRefetch();
}
else
mOpaqueWaterImagep = mWaterImagep;