summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawpoolalpha.cpp
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-03-04 09:50:11 -0800
committerGraham Linden <graham@lindenlab.com>2019-03-04 09:50:11 -0800
commit552267f1c9e95a9b10f03421aa8a37a1048c661c (patch)
tree07087447a64088578b15e33d235f9aa945eafc95 /indra/newview/lldrawpoolalpha.cpp
parent45a541d2d5ccff4279441c715d3f80890e71beb9 (diff)
Fix unused local var 'partition' and avoid assert in rendering highlights.
Diffstat (limited to 'indra/newview/lldrawpoolalpha.cpp')
-rw-r--r--indra/newview/lldrawpoolalpha.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/indra/newview/lldrawpoolalpha.cpp b/indra/newview/lldrawpoolalpha.cpp
index 84f94d4497..82a95ac7a8 100644
--- a/indra/newview/lldrawpoolalpha.cpp
+++ b/indra/newview/lldrawpoolalpha.cpp
@@ -545,10 +545,10 @@ void LLDrawPoolAlpha::renderAlpha(U32 mask, S32 pass)
LLSpatialPartition* partition = group->getSpatialPartition();
llassert(partition);
- if (group->getSpatialPartition()->mRenderByGroup && !group->isDead())
+ if (partition->mRenderByGroup && !group->isDead())
{
- bool is_particle_or_hud_particle = group->getSpatialPartition()->mPartitionType == LLViewerRegion::PARTITION_PARTICLE
- || group->getSpatialPartition()->mPartitionType == LLViewerRegion::PARTITION_HUD_PARTICLE;
+ bool is_particle_or_hud_particle = partition->mPartitionType == LLViewerRegion::PARTITION_PARTICLE
+ || partition->mPartitionType == LLViewerRegion::PARTITION_HUD_PARTICLE;
std::vector<LLDrawInfo*>* fullbrights = is_particle_or_hud_particle ? &fullbrights_hud : &fullbrights_3d;
std::vector<LLDrawInfo*>* materials = is_particle_or_hud_particle ? &materials_hud : &materials_3d;
@@ -590,9 +590,9 @@ void LLDrawPoolAlpha::renderAlpha(U32 mask, S32 pass)
renderFullbrights(mask, fullbrights_hud);
renderMaterials(mask, materials_hud);
renderEmissives(mask, emissives_hud);
-
- LLGLSLShader::bindNoShader();
- current_shader = NULL;
+
+ simple_shader->bind();
+ current_shader = simple_shader;
gGL.setSceneBlendType(LLRender::BT_ALPHA);