Crashfix.

meow-7.2.2
Nicky 2013-05-04 18:21:46 +02:00
parent 93166364c6
commit 6ee123abcd
1 changed files with 9 additions and 1 deletions

View File

@ -7275,7 +7275,15 @@ void LLPipeline::renderBloom(BOOL for_snapshot, F32 zoom_factor, int subfield)
else
{
//focus on alt-zoom target
focus_point = LLVector3(gAgentCamera.getFocusGlobal()-gAgent.getRegion()->getOriginGlobal());
// <FS:ND> Guard against agent not having a valid region set.
// focus_point = LLVector3(gAgentCamera.getFocusGlobal()-gAgent.getRegion()->getOriginGlobal());
if( gAgent.getRegion() )
focus_point = LLVector3(gAgentCamera.getFocusGlobal()-gAgent.getRegion()->getOriginGlobal());
// </FS:ND>
}
}