From 3bc16bd6dad8ce78cd9539db94776bc7b3cdea9a Mon Sep 17 00:00:00 2001 From: Beq Date: Tue, 24 Sep 2024 00:06:32 +0100 Subject: [PATCH] FIRE-34534 - guard against some more tex == null on other code paths. --- indra/newview/llvovolume.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index 730098e3d1..e18b0411ba 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -6584,7 +6584,7 @@ U32 LLVolumeGeometryManager::genDrawInfo(LLSpatialGroup* group, U32 mask, LLFace { U8 cur_tex = 0; facep->setTextureIndex(cur_tex); - if (texture_count < MAX_TEXTURE_COUNT) + if (texture_count < MAX_TEXTURE_COUNT && tex) // [FIRE-34534] guard additional cases of tex == null { texture_list[texture_count++] = tex; } @@ -6638,7 +6638,7 @@ U32 LLVolumeGeometryManager::genDrawInfo(LLSpatialGroup* group, U32 mask, LLFace // Quick hack test of proper batching logic // if (texture_count < MAX_TEXTURE_COUNT) // only add to the batch if this is a new texture - if (cur_tex == texture_count && texture_count < MAX_TEXTURE_COUNT) + if (cur_tex == texture_count && texture_count < MAX_TEXTURE_COUNT && tex) // [FIRE-34534] guard additional cases of tex == null // { texture_list[texture_count++] = tex; @@ -7015,7 +7015,7 @@ U32 LLVolumeGeometryManager::genDrawInfo(LLSpatialGroup* group, U32 mask, LLFace && te->getShiny() && can_be_shiny) { //shiny - if (tex->getPrimaryFormat() == GL_ALPHA) + if (tex && tex->getPrimaryFormat() == GL_ALPHA) // [FIRE-34534] guard additional cases of tex == null { //invisiprim+shiny registerFace(group, facep, LLRenderPass::PASS_INVISI_SHINY); registerFace(group, facep, LLRenderPass::PASS_INVISIBLE);