diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-07-29 14:32:37 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-07-29 14:32:37 +0800 |
commit | e7c1f75732c1e41dc1c4dc0933bb98f2fef01578 (patch) | |
tree | 8af18848cbb7460bb3763ee1506360e131b9c4ae /indra/llwindow/llwindowsdl.cpp | |
parent | 84a94f47c57c3a7d1be414a1b49d758bc33d32c8 (diff) |
Remove LLWindowSDL::getAvailableVRAMMegabytes()
See commit ea268fcd48550f98baceef0294fd977ff12d2b35.
Diffstat (limited to 'indra/llwindow/llwindowsdl.cpp')
-rw-r--r-- | indra/llwindow/llwindowsdl.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/indra/llwindow/llwindowsdl.cpp b/indra/llwindow/llwindowsdl.cpp index cec2fa3e4d..8c90f917b8 100644 --- a/indra/llwindow/llwindowsdl.cpp +++ b/indra/llwindow/llwindowsdl.cpp @@ -2916,17 +2916,6 @@ void LLWindowSDL::toggleVSync(bool enable_vsync) } } -U32 LLWindowSDL::getAvailableVRAMMegabytes() -{ -#if LL_DARWIN - static const U32 mb = 1024*1024; - static const U32 total_factor = 2; - return gGLManager.mVRAM - (LLImageGL::getTextureBytesAllocated() * total_factor/mb); -#else - return 4096; -#endif -} - void LLWindowSDL::setLanguageTextInput(const LLCoordGL& position) { LLCoordWindow win_pos; |