diff options
author | Rye Cogtail <rye@lindenlab.com> | 2024-10-30 16:05:36 -0400 |
---|---|---|
committer | Rye <rye@lindenlab.com> | 2024-10-30 22:08:07 -0700 |
commit | 067d568721ab65e5c806385a8c98d7a843ddf907 (patch) | |
tree | 0bac7e5b2086e208b1e058b83a573b9bd27743ba | |
parent | ae5e4c30468f0712c0f8b28b7b36ada41c198c14 (diff) |
Fix potential crash from LLWorld being called before singleton creation during early init
-rw-r--r-- | indra/newview/llviewershadermgr.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llviewershadermgr.cpp b/indra/newview/llviewershadermgr.cpp index a6d397c039..c219b0575e 100644 --- a/indra/newview/llviewershadermgr.cpp +++ b/indra/newview/llviewershadermgr.cpp @@ -985,7 +985,10 @@ bool LLViewerShaderMgr::loadShadersWater() return loadShadersWater(); } - LLWorld::getInstance()->updateWaterObjects(); + if (LLWorld::instanceExists()) + { + LLWorld::getInstance()->updateWaterObjects(); + } return true; } |