diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2012-04-12 15:50:25 -0600 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2012-04-12 15:50:25 -0600 |
commit | 0a42495906fdc56eeb118ac41ffa9ebcadc8de17 (patch) | |
tree | 5906d53ff8d0ca460d98a678fd730d9e4ba33944 /indra/newview/llviewertexture.cpp | |
parent | 3c0e4e432461122ed9efe3bb6157247a34d7911b (diff) |
for SH-3074: clear ghost and stale texture fetching requests in time
Diffstat (limited to 'indra/newview/llviewertexture.cpp')
-rw-r--r-- | indra/newview/llviewertexture.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp index 2efc9ad4d0..09f3db60f2 100644 --- a/indra/newview/llviewertexture.cpp +++ b/indra/newview/llviewertexture.cpp @@ -2129,6 +2129,17 @@ bool LLViewerFetchedTexture::updateFetch() return mIsFetching ? true : false; } +void LLViewerFetchedTexture::forceToDeleteRequest()
+{
+ if (mHasFetcher)
+ {
+ LLAppViewer::getTextureFetch()->deleteRequest(getID(), true);
+ mHasFetcher = FALSE;
+ mIsFetching = FALSE ;
+ resetTextureStats();
+ }
+}
+ void LLViewerFetchedTexture::setIsMissingAsset() { if (mUrl.empty()) |