SL-16400 Fix for grey textures (hack).

meow-7.2.2
Runitai Linden 2021-11-22 19:12:39 -06:00
parent 9b0d8c7e62
commit 744646eb71
2 changed files with 5 additions and 1 deletions

View File

@ -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();

View File

@ -324,7 +324,7 @@ public:
private:
LLWindow* mWindow;
void* mContext;
void* mContext = nullptr;
LLAtomicBool mFinished;
};