summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorBrad Linden <46733234+brad-linden@users.noreply.github.com>2024-06-21 12:00:43 -0700
committerGitHub <noreply@github.com>2024-06-21 12:00:43 -0700
commita9971d35015fc97fb6bd2fb4e94152c9f2e0779e (patch)
treed30142cfac4df7920263e82289f8b75e22e92f64 /indra
parent80ea30af1a8b38360f71c29cc45872c4399dab0d (diff)
parent77374d9fbce801091f8685b715139b09b5aaa8a1 (diff)
Merge pull request #1824 from Ansariel/develop
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)]