Disable texture decode thread if shared context are not available (SDL1).

master
Nicky 2022-08-01 19:32:26 +02:00
parent f09e353dfd
commit 97d41439c4
2 changed files with 10 additions and 2 deletions

View File

@ -2434,6 +2434,16 @@ LLImageGLThread::LLImageGLThread(LLWindow* window)
mFinished = false;
mContext = mWindow->createSharedContext();
// <FS:ND> If context creating is not supported (SDL1), mark texture thread disabled and exit
if( !mContext )
{
sEnabled = false;
mFinished = true;
return;
}
// </FS:ND>
ThreadPool::start();
}

View File

@ -3024,8 +3024,6 @@ std::vector<std::string> LLWindowSDL::getDynamicFallbackFontList()
return rtns;
}
#pragma GCC error "Unimplemented. Either disable threaded texture decoding, implent those methods or switch to SDL2."
void* LLWindowSDL::createSharedContext()
{
LL_WARNS() << "Not available" << LL_ENDL;