diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewerimagelist.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/linden/indra/newview/llviewerimagelist.cpp b/linden/indra/newview/llviewerimagelist.cpp index a31ed86..43ac967 100644 --- a/linden/indra/newview/llviewerimagelist.cpp +++ b/linden/indra/newview/llviewerimagelist.cpp | |||
@@ -58,7 +58,7 @@ | |||
58 | #include "llviewerimage.h" | 58 | #include "llviewerimage.h" |
59 | #include "llviewerregion.h" | 59 | #include "llviewerregion.h" |
60 | #include "pipeline.h" | 60 | #include "pipeline.h" |
61 | #include "viewer.h" | 61 | #include "llappviewer.h" |
62 | 62 | ||
63 | //////////////////////////////////////////////////////////////////////////// | 63 | //////////////////////////////////////////////////////////////////////////// |
64 | 64 | ||
@@ -327,7 +327,7 @@ static std::string get_texture_list_name() | |||
327 | 327 | ||
328 | void LLViewerImageList::doPrefetchImages() | 328 | void LLViewerImageList::doPrefetchImages() |
329 | { | 329 | { |
330 | if (gPurgeCache) | 330 | if (LLAppViewer::instance()->getPurgeCache()) |
331 | { | 331 | { |
332 | // cache was purged, no point | 332 | // cache was purged, no point |
333 | return; | 333 | return; |
@@ -1028,9 +1028,9 @@ void LLViewerImageList::decodeAllImages(F32 max_time) | |||
1028 | S32 fetch_pending = 0; | 1028 | S32 fetch_pending = 0; |
1029 | while (1) | 1029 | while (1) |
1030 | { | 1030 | { |
1031 | gTextureCache->update(1); // unpauses the texture cache thread | 1031 | LLAppViewer::instance()->getTextureCache()->update(1); // unpauses the texture cache thread |
1032 | gImageDecodeThread->update(1); // unpauses the image thread | 1032 | LLAppViewer::instance()->getImageDecodeThread()->update(1); // unpauses the image thread |
1033 | fetch_pending = gTextureFetch->update(1); // unpauses the texture fetch thread | 1033 | fetch_pending = LLAppViewer::instance()->getTextureFetch()->update(1); // unpauses the texture fetch thread |
1034 | if (fetch_pending == 0 || timer.getElapsedTimeF32() > max_time) | 1034 | if (fetch_pending == 0 || timer.getElapsedTimeF32() > max_time) |
1035 | { | 1035 | { |
1036 | break; | 1036 | break; |
@@ -1324,7 +1324,7 @@ void LLViewerImageList::receiveImageHeader(LLMessageSystem *msg, void **user_dat | |||
1324 | return; | 1324 | return; |
1325 | } | 1325 | } |
1326 | image->mLastPacketTimer.reset(); | 1326 | image->mLastPacketTimer.reset(); |
1327 | bool res = gTextureFetch->receiveImageHeader(msg->getSender(), id, codec, packets, totalbytes, data_size, data); | 1327 | bool res = LLAppViewer::getTextureFetch()->receiveImageHeader(msg->getSender(), id, codec, packets, totalbytes, data_size, data); |
1328 | if (!res) | 1328 | if (!res) |
1329 | { | 1329 | { |
1330 | delete[] data; | 1330 | delete[] data; |
@@ -1388,7 +1388,7 @@ void LLViewerImageList::receiveImagePacket(LLMessageSystem *msg, void **user_dat | |||
1388 | return; | 1388 | return; |
1389 | } | 1389 | } |
1390 | image->mLastPacketTimer.reset(); | 1390 | image->mLastPacketTimer.reset(); |
1391 | bool res = gTextureFetch->receiveImagePacket(msg->getSender(), id, packet_num, data_size, data); | 1391 | bool res = LLAppViewer::getTextureFetch()->receiveImagePacket(msg->getSender(), id, packet_num, data_size, data); |
1392 | if (!res) | 1392 | if (!res) |
1393 | { | 1393 | { |
1394 | delete[] data; | 1394 | delete[] data; |