summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-02-18 15:52:24 -0600
committerDave Parks <davep@lindenlab.com>2022-02-18 15:52:24 -0600
commit1461e4d437996784cc8afe5d4b3bfa873d3dbfa1 (patch)
tree52188844c637b7b604428707c99163b520c7799a /indra
parent1d378deab5ca3815e01e3e8f2b65f05b920710a8 (diff)
SL-16815 Fix for crash when disabling ALM.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/lldrawpoolbump.cpp4
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);