From bb4385bf0fbe56dc45a92d7d89b8f1e71ab92f18 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Fri, 6 Sep 2024 02:34:27 +0200 Subject: [PATCH] Looks like this only exists on Windows --- indra/llrender/llgl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/indra/llrender/llgl.cpp b/indra/llrender/llgl.cpp index ff87f0407e..e1b0642953 100644 --- a/indra/llrender/llgl.cpp +++ b/indra/llrender/llgl.cpp @@ -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