summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-07-29 14:32:37 +0800
committerErik Kundiman <erik@megapahit.org>2024-07-29 14:32:37 +0800
commite7c1f75732c1e41dc1c4dc0933bb98f2fef01578 (patch)
tree8af18848cbb7460bb3763ee1506360e131b9c4ae
parent84a94f47c57c3a7d1be414a1b49d758bc33d32c8 (diff)
Remove LLWindowSDL::getAvailableVRAMMegabytes()
See commit ea268fcd48550f98baceef0294fd977ff12d2b35.
-rw-r--r--indra/llwindow/llwindowsdl.cpp11
-rw-r--r--indra/llwindow/llwindowsdl.h2
2 files changed, 0 insertions, 13 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;
diff --git a/indra/llwindow/llwindowsdl.h b/indra/llwindow/llwindowsdl.h
index 8d4aeb5efb..3ed2811572 100644
--- a/indra/llwindow/llwindowsdl.h
+++ b/indra/llwindow/llwindowsdl.h
@@ -219,8 +219,6 @@ public:
void toggleVSync(bool enable_vsync) override;
- U32 getAvailableVRAMMegabytes() override;
-
protected:
LLWindowSDL(LLWindowCallbacks *callbacks,
const std::string &title, int x, int y, int width, int height, U32 flags,