Skip to content

Commit 60a4033

Browse files
committed
Fix crash observed during early startup during feature table resets on linux due to LLWorld simpleton not being initialized yet
Signed-off-by: Rye <[email protected]>
1 parent 423a964 commit 60a4033

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

indra/newview/llviewershadermgr.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,10 @@ bool LLViewerShaderMgr::loadShadersWater()
10021002
return loadShadersWater();
10031003
}
10041004

1005-
LLWorld::getInstance()->updateWaterObjects();
1005+
if (LLWorld::instanceExists())
1006+
{
1007+
LLWorld::getInstance()->updateWaterObjects();
1008+
}
10061009

10071010
return true;
10081011
}

0 commit comments

Comments
 (0)