summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAnsariel <ansariel.hiller@phoenixviewer.com>2024-06-21 12:56:57 +0200
committerAnsariel <ansariel.hiller@phoenixviewer.com>2024-06-21 12:56:57 +0200
commit77374d9fbce801091f8685b715139b09b5aaa8a1 (patch)
tree984b732a6cac091f6317d684357e27be3f41281b /indra
parente4fd1bd71ef31b34ea92e2b5b5be4e08aad42269 (diff)
Fix texture fetch request getting canceled if request counter flips over
Diffstat (limited to 'indra')
-rw-r--r--indra/llimage/llimageworker.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/llimage/llimageworker.cpp b/indra/llimage/llimageworker.cpp
index accbd9964b..bdaef0c653 100644
--- a/indra/llimage/llimageworker.cpp
+++ b/indra/llimage/llimageworker.cpp
@@ -97,6 +97,9 @@ LLImageDecodeThread::handle_t LLImageDecodeThread::decodeImage(
LL_PROFILE_ZONE_SCOPED_CATEGORY_TEXTURE;
U32 decode_id = ++mDecodeCount;
+ if (decode_id == 0)
+ decode_id = ++mDecodeCount;
+
// Instantiate the ImageRequest right in the lambda, why not?
bool posted = mThreadPool->getQueue().post(
[req = ImageRequest(image, discard, needs_aux, responder, decode_id)]