summaryrefslogtreecommitdiff
path: root/indra/newview/llreflectionmapmanager.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-11-26 12:05:25 +0800
committerErik Kundiman <erik@megapahit.org>2024-11-26 12:05:25 +0800
commita40795bd6ffcfff71bead4869d79cf5a73d5a7af (patch)
tree6c4c1fbb421f737c0b62fcda51ca7ca0ce8294f4 /indra/newview/llreflectionmapmanager.cpp
parent30842e230e2b3d365e8415f0350f8d10ce8b0637 (diff)
parentd65fb7cec8ce36ce7f6ff082f8d04bdd8bc0208c (diff)
Merge remote-tracking branch 'secondlife/release/2024.09-ExtraFPS' into 2024.09-ExtraFPS
Diffstat (limited to 'indra/newview/llreflectionmapmanager.cpp')
-rw-r--r--indra/newview/llreflectionmapmanager.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llreflectionmapmanager.cpp b/indra/newview/llreflectionmapmanager.cpp
index 82bcfdc0af..ad8d6ff7bf 100644
--- a/indra/newview/llreflectionmapmanager.cpp
+++ b/indra/newview/llreflectionmapmanager.cpp
@@ -463,7 +463,7 @@ void LLReflectionMapManager::update()
LLReflectionMap* LLReflectionMapManager::addProbe(LLSpatialGroup* group)
{
- if (gGLManager.mGLVersion < 4.05f)
+ if (gGLManager.mGLVersion < 4.05f || !LLPipeline::sReflectionProbesEnabled)
{
return nullptr;
}
@@ -579,6 +579,11 @@ LLReflectionMap* LLReflectionMapManager::registerSpatialGroup(LLSpatialGroup* gr
LLReflectionMap* LLReflectionMapManager::registerViewerObject(LLViewerObject* vobj)
{
+ if (!LLPipeline::sReflectionProbesEnabled)
+ {
+ return nullptr;
+ }
+
llassert(vobj != nullptr);
LLReflectionMap* probe = new LLReflectionMap();