diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2025-04-01 22:59:22 +0300 | 
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-04-05 09:28:26 +0300 | 
| commit | 2da46c38305f6002993cd1974a9342935e97f8c6 (patch) | |
| tree | 39ed9d70d2ad08cf79d63acbea799adeeb1479cc /indra/llrender | |
| parent | 9aea5bb5e25a3b046c305eb0200fa9e84895c898 (diff) | |
#3575 Clean up obsolete VRAM detectin logic
Diffstat (limited to 'indra/llrender')
| -rw-r--r-- | indra/llrender/llgl.cpp | 19 | 
1 files changed, 0 insertions, 19 deletions
| diff --git a/indra/llrender/llgl.cpp b/indra/llrender/llgl.cpp index 1966e48f2e..0be27b8975 100644 --- a/indra/llrender/llgl.cpp +++ b/indra/llrender/llgl.cpp @@ -1228,28 +1228,9 @@ bool LLGLManager::initGL()      }  #endif -#if LL_WINDOWS -    if (mVRAM < 256) -    { -        // Something likely went wrong using the above extensions -        // try WMI first and fall back to old method (from dxdiag) if all else fails -        // Function will check all GPUs WMI knows of and will pick up the one with most -        // memory. We need to check all GPUs because system can switch active GPU to -        // weaker one, to preserve power when not under load. -        U32 mem = LLDXHardware::getMBVideoMemoryViaWMI(); -        if (mem != 0) -        { -            mVRAM = mem; -            LL_WARNS("RenderInit") << "VRAM Detected (WMI):" << mVRAM<< LL_ENDL; -        } -    } -#endif -      if (mVRAM < 256 && old_vram > 0)      {          // fall back to old method -        // Note: on Windows value will be from LLDXHardware. -        // Either received via dxdiag or via WMI by id from dxdiag.          mVRAM = old_vram;      } | 
