summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indra/newview/llviewertexture.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp
index 14647d6f84..36b6787ace 100644
--- a/indra/newview/llviewertexture.cpp
+++ b/indra/newview/llviewertexture.cpp
@@ -582,31 +582,9 @@ void LLViewerTexture::updateClass()
{
if (!was_backgrounded)
{
- std::string notification_name;
- std::string setting;
- if (is_minimized)
- {
- notification_name = "TextureDiscardMinimized";
- setting = "TextureDiscardMinimizedTime";
- }
- else
- {
- notification_name = "TextureDiscardBackgrounded";
- setting = "TextureDiscardBackgroundedTime";
- }
-
LL_INFOS() << "Viewer was " << (is_minimized ? "minimized" : "backgrounded") << " for " << discard_time
<< "s, freeing up video memory." << LL_ENDL;
- LLNotificationsUtil::add(notification_name, llsd::map("DELAY", discard_time), LLSD(),
- [=](const LLSD& notification, const LLSD& response)
- {
- if (response["Cancel_okcancelignore"].asBoolean())
- {
- LL_INFOS() << "User chose to disable texture discard on " << (is_minimized ? "minimizing." : "backgrounding.") << LL_ENDL;
- gSavedSettings.setF32(setting, -1.f);
- }
- });
last_desired_discard_bias = sDesiredDiscardBias;
was_backgrounded = true;
}