SL-16815 Fix for crash when disabling ALM.

meow-7.2.2
Dave Parks 2022-02-18 15:52:24 -06:00
parent 1d378deab5
commit 1461e4d437
1 changed files with 4 additions and 0 deletions

View File

@ -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);