summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,