Skip to content

Commit 412b3db

Browse files
authored
Remove unwanted notification for texture downrezing behavior (#3233)
#2549
1 parent 5e35785 commit 412b3db

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

indra/newview/llviewertexture.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -582,31 +582,9 @@ void LLViewerTexture::updateClass()
582582
{
583583
if (!was_backgrounded)
584584
{
585-
std::string notification_name;
586-
std::string setting;
587-
if (is_minimized)
588-
{
589-
notification_name = "TextureDiscardMinimized";
590-
setting = "TextureDiscardMinimizedTime";
591-
}
592-
else
593-
{
594-
notification_name = "TextureDiscardBackgrounded";
595-
setting = "TextureDiscardBackgroundedTime";
596-
}
597-
598585
LL_INFOS() << "Viewer was " << (is_minimized ? "minimized" : "backgrounded") << " for " << discard_time
599586
<< "s, freeing up video memory." << LL_ENDL;
600587

601-
LLNotificationsUtil::add(notification_name, llsd::map("DELAY", discard_time), LLSD(),
602-
[=](const LLSD& notification, const LLSD& response)
603-
{
604-
if (response["Cancel_okcancelignore"].asBoolean())
605-
{
606-
LL_INFOS() << "User chose to disable texture discard on " << (is_minimized ? "minimizing." : "backgrounding.") << LL_ENDL;
607-
gSavedSettings.setF32(setting, -1.f);
608-
}
609-
});
610588
last_desired_discard_bias = sDesiredDiscardBias;
611589
was_backgrounded = true;
612590
}

0 commit comments

Comments
 (0)