diff options
| author | Brad Linden <46733234+brad-linden@users.noreply.github.com> | 2024-12-06 16:35:47 -0800 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-06 16:35:47 -0800 | 
| commit | 412b3db5a877eab977346e3f30464d5745afd69b (patch) | |
| tree | 573e307197982e84ff374d4e760b8c51fb93794c /indra/newview | |
| parent | 5e35785b8d2e782144c5f46ad0c440ded158f88c (diff) | |
Remove unwanted notification for texture downrezing behavior (#3233)
secondlife/viewer#2549
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llviewertexture.cpp | 22 | 
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;              } | 
