aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerimage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llviewerimage.cpp')
-rw-r--r--linden/indra/newview/llviewerimage.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/linden/indra/newview/llviewerimage.cpp b/linden/indra/newview/llviewerimage.cpp
index 400fb2f..671a359 100644
--- a/linden/indra/newview/llviewerimage.cpp
+++ b/linden/indra/newview/llviewerimage.cpp
@@ -256,6 +256,10 @@ LLViewerImage::LLViewerImage(const LLUUID& id, const LLHost& host, BOOL usemipma
256{ 256{
257 init(true); 257 init(true);
258 sImageCount++; 258 sImageCount++;
259 if (host != LLHost::invalid)
260 {
261 mCanUseHTTP = false; // this is a baked texture
262 }
259} 263}
260 264
261LLViewerImage::LLViewerImage(const std::string& url, const LLUUID& id, BOOL usemipmaps) 265LLViewerImage::LLViewerImage(const std::string& url, const LLUUID& id, BOOL usemipmaps)
@@ -346,6 +350,8 @@ void LLViewerImage::init(bool firstinit)
346 mForceToSaveRawImage = FALSE ; 350 mForceToSaveRawImage = FALSE ;
347 mSavedRawDiscardLevel = -1 ; 351 mSavedRawDiscardLevel = -1 ;
348 mDesiredSavedRawDiscardLevel = -1 ; 352 mDesiredSavedRawDiscardLevel = -1 ;
353
354 mCanUseHTTP = true; //default on if cap/settings allows us
349} 355}
350 356
351// virtual 357// virtual
@@ -1213,7 +1219,7 @@ bool LLViewerImage::updateFetch()
1213 // bypass texturefetch directly by pulling from LLTextureCache 1219 // bypass texturefetch directly by pulling from LLTextureCache
1214 bool fetch_request_created = false; 1220 bool fetch_request_created = false;
1215 fetch_request_created = LLAppViewer::getTextureFetch()->createRequest(mUrl, getID(),getTargetHost(), decode_priority, 1221 fetch_request_created = LLAppViewer::getTextureFetch()->createRequest(mUrl, getID(),getTargetHost(), decode_priority,
1216 w, h, c, desired_discard, needsAux()); 1222 w, h, c, desired_discard, needsAux(), mCanUseHTTP);
1217 1223
1218 if (fetch_request_created) 1224 if (fetch_request_created)
1219 { 1225 {
@@ -1292,7 +1298,7 @@ BOOL LLViewerImage::forceFetch()
1292 c = getComponents(); 1298 c = getComponents();
1293 } 1299 }
1294 fetch_request_created = LLAppViewer::getTextureFetch()->createRequest(mUrl, getID(),getTargetHost(), maxDecodePriority(), 1300 fetch_request_created = LLAppViewer::getTextureFetch()->createRequest(mUrl, getID(),getTargetHost(), maxDecodePriority(),
1295 w, h, c, desired_discard, needsAux()); 1301 w, h, c, desired_discard, needsAux(), mCanUseHTTP);
1296 1302
1297 if (fetch_request_created) 1303 if (fetch_request_created)
1298 { 1304 {