aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerimage.cpp
diff options
context:
space:
mode:
authorthickbrick2010-10-16 03:16:14 +0200
committerMcCabe Maxsted2010-10-16 17:32:57 -0700
commit17c1840637925c1165e434b502d09ee82a3d4942 (patch)
treefa16b0f14d2c881bd468e2d2f7fbe771bf35356e /linden/indra/newview/llviewerimage.cpp
parentChanged the display of the GCC version to add more information on the compile... (diff)
downloadmeta-impy-17c1840637925c1165e434b502d09ee82a3d4942.zip
meta-impy-17c1840637925c1165e434b502d09ee82a3d4942.tar.gz
meta-impy-17c1840637925c1165e434b502d09ee82a3d4942.tar.bz2
meta-impy-17c1840637925c1165e434b502d09ee82a3d4942.tar.xz
Port of SNOW-802: Use UDP for baked textures.
Port of SNOW-802 from SG1. Originally ported by Robin cornelius from SG 2.1. Also added a paramter can_use_http to the LLTextureFetchWorker constructor, to avoid messing with locks.
Diffstat (limited to 'linden/indra/newview/llviewerimage.cpp')
-rw-r--r--linden/indra/newview/llviewerimage.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/linden/indra/newview/llviewerimage.cpp b/linden/indra/newview/llviewerimage.cpp
index 400fb2f..4f23a05 100644
--- a/linden/indra/newview/llviewerimage.cpp
+++ b/linden/indra/newview/llviewerimage.cpp
@@ -346,6 +346,8 @@ void LLViewerImage::init(bool firstinit)
346 mForceToSaveRawImage = FALSE ; 346 mForceToSaveRawImage = FALSE ;
347 mSavedRawDiscardLevel = -1 ; 347 mSavedRawDiscardLevel = -1 ;
348 mDesiredSavedRawDiscardLevel = -1 ; 348 mDesiredSavedRawDiscardLevel = -1 ;
349
350 mCanUseHTTP = true; //default on if cap/settings allows us
349} 351}
350 352
351// virtual 353// virtual
@@ -1213,7 +1215,7 @@ bool LLViewerImage::updateFetch()
1213 // bypass texturefetch directly by pulling from LLTextureCache 1215 // bypass texturefetch directly by pulling from LLTextureCache
1214 bool fetch_request_created = false; 1216 bool fetch_request_created = false;
1215 fetch_request_created = LLAppViewer::getTextureFetch()->createRequest(mUrl, getID(),getTargetHost(), decode_priority, 1217 fetch_request_created = LLAppViewer::getTextureFetch()->createRequest(mUrl, getID(),getTargetHost(), decode_priority,
1216 w, h, c, desired_discard, needsAux()); 1218 w, h, c, desired_discard, needsAux(), mCanUseHTTP);
1217 1219
1218 if (fetch_request_created) 1220 if (fetch_request_created)
1219 { 1221 {
@@ -1292,7 +1294,7 @@ BOOL LLViewerImage::forceFetch()
1292 c = getComponents(); 1294 c = getComponents();
1293 } 1295 }
1294 fetch_request_created = LLAppViewer::getTextureFetch()->createRequest(mUrl, getID(),getTargetHost(), maxDecodePriority(), 1296 fetch_request_created = LLAppViewer::getTextureFetch()->createRequest(mUrl, getID(),getTargetHost(), maxDecodePriority(),
1295 w, h, c, desired_discard, needsAux()); 1297 w, h, c, desired_discard, needsAux(), mCanUseHTTP);
1296 1298
1297 if (fetch_request_created) 1299 if (fetch_request_created)
1298 { 1300 {