summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2026-01-30 13:48:37 +0800
committerErik Kundiman <erik@megapahit.org>2026-01-30 13:48:37 +0800
commit45eeed33872a9ff367bc6f2997c2fdedb65171ac (patch)
treeba58689aeea923bdb674b2183b0f9f1b328dcc9a /indra
parentdbe9c9c1929cfb345f9363e4ba1cb4128188d2f3 (diff)
parent3caf20f4c43173393c10b9cecbb266a4f7ff3702 (diff)
Merge tag 'Second_Life_Release#3caf20f4-2026.01' into 2026.01
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llfeaturemanager.cpp4
-rw-r--r--indra/newview/llviewermenu.cpp7
2 files changed, 5 insertions, 6 deletions
diff --git a/indra/newview/llfeaturemanager.cpp b/indra/newview/llfeaturemanager.cpp
index 870d56a51e..68443dfc5b 100644
--- a/indra/newview/llfeaturemanager.cpp
+++ b/indra/newview/llfeaturemanager.cpp
@@ -495,7 +495,9 @@ bool LLFeatureManager::loadGPUClass()
{
mGPUClass = GPU_CLASS_2;
}
- else if (gbps <= class1_gbps*4.f)
+ else if ((gbps <= class1_gbps*4.f)
+ // Cap silicon's GPUs at med+ as they have high throughput, low capability
+ || gGLManager.mIsApple)
{
mGPUClass = GPU_CLASS_3;
}
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp
index 489e40c593..24f2cf20e0 100644
--- a/indra/newview/llviewermenu.cpp
+++ b/indra/newview/llviewermenu.cpp
@@ -6729,11 +6729,8 @@ class LLAvatarEnableResetSkeleton : public view_listener_t
{
bool handleEvent(const LLSD& userdata)
{
- if (LLVOAvatar* avatar = find_avatar_from_object(LLSelectMgr::getInstance()->getSelection()->getPrimaryObject()))
- {
- return true;
- }
- return false;
+ LLViewerObject* obj = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject();
+ return obj && obj->getAvatar();
}
};