[EEP] NULL gAtmosphere crash fix

master
andreykproductengine 2018-12-05 18:10:08 +02:00
parent 031dabede8
commit 7650fb53c8
1 changed files with 5 additions and 2 deletions

View File

@ -395,8 +395,11 @@ void LLDrawPoolWLSky::renderStarsDeferred(void) const
void LLDrawPoolWLSky::renderSkyCloudsAdvanced(const LLVector3& camPosLocal, F32 camHeightLocal, LLGLSLShader* cloudshader) const
{
if (gPipeline.canUseWindLightShaders() && gPipeline.hasRenderType(LLPipeline::RENDER_TYPE_CLOUDS) && gSky.mVOSkyp->getCloudNoiseTex())
{
if (gPipeline.canUseWindLightShaders()
&& gPipeline.hasRenderType(LLPipeline::RENDER_TYPE_CLOUDS)
&& gSky.mVOSkyp->getCloudNoiseTex()
&& gAtmosphere)
{
LLGLSPipelineBlendSkyBox pipeline(true, true);
LLSettingsSky::ptr_t psky = LLEnvironment::instance().getCurrentSky();