From 412b3db5a877eab977346e3f30464d5745afd69b Mon Sep 17 00:00:00 2001 From: Brad Linden <46733234+brad-linden@users.noreply.github.com> Date: Fri, 6 Dec 2024 16:35:47 -0800 Subject: Remove unwanted notification for texture downrezing behavior (#3233) secondlife/viewer#2549 --- indra/newview/llviewertexture.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'indra') 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; } -- cgit v1.2.3