SL-16400 Fix for grey textures (hack).
parent
9b0d8c7e62
commit
744646eb71
|
|
@ -2268,6 +2268,10 @@ void LLImageGLThread::run()
|
|||
LL_PROFILE_ZONE_SCOPED;
|
||||
// We must perform setup on this thread before actually servicing our
|
||||
// WorkQueue, likewise cleanup afterwards.
|
||||
while (mContext == nullptr)
|
||||
{ // HACK -- wait for mContext to be initialized since this thread will usually start before mContext is set
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||
}
|
||||
mWindow->makeContextCurrent(mContext);
|
||||
gGL.init();
|
||||
ThreadPool::run();
|
||||
|
|
|
|||
|
|
@ -324,7 +324,7 @@ public:
|
|||
|
||||
private:
|
||||
LLWindow* mWindow;
|
||||
void* mContext;
|
||||
void* mContext = nullptr;
|
||||
LLAtomicBool mFinished;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue