diff options
| author | Dave Parks <davep@lindenlab.com> | 2022-02-18 15:52:24 -0600 | 
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2022-02-18 15:52:24 -0600 | 
| commit | 1461e4d437996784cc8afe5d4b3bfa873d3dbfa1 (patch) | |
| tree | 52188844c637b7b604428707c99163b520c7799a /indra/newview | |
| parent | 1d378deab5ca3815e01e3e8f2b65f05b920710a8 (diff) | |
SL-16815 Fix for crash when disabling ALM.
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/lldrawpoolbump.cpp | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/indra/newview/lldrawpoolbump.cpp b/indra/newview/lldrawpoolbump.cpp index 20287a7777..7d03cb7609 100644 --- a/indra/newview/lldrawpoolbump.cpp +++ b/indra/newview/lldrawpoolbump.cpp @@ -1218,6 +1218,10 @@ void LLBumpImageList::onSourceLoaded( BOOL success, LLViewerTexture *src_vi, LLI                  auto gen_normal_map = [bump_ptr, dst_ptr]()                  {                      LL_PROFILE_ZONE_NAMED("bil - generate normal map"); +                    if (gNormalMapGenProgram.mProgramObject == 0) +                    { +                        return; +                    }                      gPipeline.mScreen.bindTarget();                      LLGLDepthTest depth(GL_FALSE); | 
