Resetting media texture reference timer on update call to prevent purging from texture list while still in use. Keeping nullcheck just to be safe. (Broken video is preferable to a crash)

This commit is contained in:
Shyotl
2011-05-07 21:49:48 -05:00
parent 2a9e7ec5f7
commit c5917d79c7

View File

@@ -989,6 +989,12 @@ void LLViewerMediaImpl::updateImagesMediaStreams()
LLViewerMediaTexture* placeholder_image = (LLViewerMediaTexture*)LLViewerTextureManager::findTexture( mTextureId );
if(!placeholder_image)
{
return NULL;
}
placeholder_image->getLastReferencedTimer()->reset();
if (mNeedsNewTexture
|| placeholder_image->getUseMipMaps()
|| ! placeholder_image->mIsMediaTexture