Fix for some GPUs thinking they have 0 available vram.

master
Dave Parks 2022-02-23 19:53:49 -06:00
parent fc0b238654
commit 4f9fa5e817
1 changed files with 1 additions and 1 deletions

View File

@ -2372,7 +2372,7 @@ void LLImageGL::checkActiveThread()
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, nummips);
*/
std::atomic<S32> LLImageGLThread::sFreeVRAMMegabytes;
std::atomic<S32> LLImageGLThread::sFreeVRAMMegabytes = 4096; //if free vram is unknown, default to 4GB
LLImageGLThread::LLImageGLThread(LLWindow* window)
// We want exactly one thread, but a very large capacity: we never want