Possible crash fix in LLDrawable via Henri Beauchamp (Cool VL)

Tue, 27 Dec 2011 12:35:53 +0100

author
Ansariel
date
Tue, 27 Dec 2011 12:35:53 +0100
changeset 1611
03d17778bcda
parent 1610
324c1cacc296
child 1612
a4e050c55225

Possible crash fix in LLDrawable via Henri Beauchamp (Cool VL)

indra/newview/lldrawable.cpp file | annotate | diff | revisions
     1.1 --- a/indra/newview/lldrawable.cpp	Tue Dec 27 12:35:41 2011 +0100
     1.2 +++ b/indra/newview/lldrawable.cpp	Tue Dec 27 12:35:53 2011 +0100
     1.3 @@ -1258,7 +1258,14 @@
     1.4  	
     1.5  	void visit(const LLOctreeNode<LLDrawable>* branch)
     1.6  	{
     1.7 -		gPipeline.markNotCulled((LLSpatialGroup*) branch->getListener(0), *mCamera);
     1.8 +		if (branch)
     1.9 +		{
    1.10 +			gPipeline.markNotCulled((LLSpatialGroup*) branch->getListener(0), *mCamera);
    1.11 +		}
    1.12 +		else
    1.13 +		{
    1.14 +			llwarns << "LLOctreeMarkNotCulled::visit() called for a NULL branch" << llendl;
    1.15 +		}
    1.16  	}
    1.17  };
    1.18  

mercurial