Looks like this only exists on Windows

master
Ansariel 2024-09-06 02:34:27 +02:00
parent 100dfdc736
commit bb4385bf0f
1 changed files with 2 additions and 0 deletions

View File

@ -1249,6 +1249,7 @@ bool LLGLManager::initGL()
LL_INFOS("RenderInit") << "VRAM Detected (NVXMemInfo):" << mVRAM << LL_ENDL;
}
#ifdef LL_WINDOWS
if (mHasAMDAssociations && mVRAM == 0)
{
GLuint gl_gpus_count = wglGetGPUIDsAMD(0, 0);
@ -1274,6 +1275,7 @@ bool LLGLManager::initGL()
}
LL_INFOS("RenderInit") << "VRAM Detected (AMDAssociations):" << mVRAM << LL_ENDL;
}
#endif
if (mHasATIMemInfo && mVRAM == 0)
{ //ask the gl how much vram is free at startup and attempt to use no more than half of that