Skip to content
Snippets Groups Projects
Commit 159d4f9c authored by Andrey Kleshchev's avatar Andrey Kleshchev
Browse files

SL-18708 Shutdown crash at renderHeavenlyBodies

parent 32984b56
No related branches found
No related tags found
No related merge requests found
......@@ -451,6 +451,8 @@ void LLDrawPoolWLSky::renderSkyClouds(const LLVector3& camPosLocal, F32 camHeigh
void LLDrawPoolWLSky::renderHeavenlyBodies()
{
if (!gSky.mVOSkyp) return;
LLGLSPipelineBlendSkyBox gls_skybox(true, false);
LLVector3 const & origin = LLViewerCamera::getInstance()->getOrigin();
......
......@@ -38,6 +38,7 @@
#include "llglheaders.h"
#include "llhttpnode.h"
#include "llregionhandle.h"
#include "llsky.h"
#include "llsurface.h"
#include "lltrans.h"
#include "llviewercamera.h"
......@@ -117,6 +118,7 @@ void LLWorld::resetClass()
{
mHoleWaterObjects.clear();
gObjectList.destroy();
gSky.cleanup(); // references an object
for(region_list_t::iterator region_it = mRegionList.begin(); region_it != mRegionList.end(); )
{
LLViewerRegion* region_to_delete = *region_it++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment