From e7c1f75732c1e41dc1c4dc0933bb98f2fef01578 Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Mon, 29 Jul 2024 14:32:37 +0800 Subject: Remove LLWindowSDL::getAvailableVRAMMegabytes() See commit ea268fcd48550f98baceef0294fd977ff12d2b35. --- indra/llwindow/llwindowsdl.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'indra/llwindow/llwindowsdl.cpp') 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; -- cgit v1.2.3