Skip to content
Snippets Groups Projects
Commit ebf35d51 authored by Richard Linden's avatar Richard Linden
Browse files

SH-4232 FIX: Interesting: Viewer Crash on Login

parent 613b949e
No related branches found
No related tags found
No related merge requests found
...@@ -169,7 +169,7 @@ class AccumulatorBuffer : public LLRefCount ...@@ -169,7 +169,7 @@ class AccumulatorBuffer : public LLRefCount
LL_FORCE_INLINE static ACCUMULATOR* getPrimaryStorage() LL_FORCE_INLINE static ACCUMULATOR* getPrimaryStorage()
{ {
ACCUMULATOR* accumulator = LLThreadLocalSingletonPointer<ACCUMULATOR>::getInstance(); ACCUMULATOR* accumulator = LLThreadLocalSingletonPointer<ACCUMULATOR>::getInstance();
return accumulator ? accumulator : sDefaultBuffer->mStorage; return accumulator ? accumulator : getDefaultBuffer()->mStorage;
} }
// NOTE: this is not thread-safe. We assume that slots are reserved in the main thread before any child threads are spawned // NOTE: this is not thread-safe. We assume that slots are reserved in the main thread before any child threads are spawned
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment