summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2013-04-02 15:45:17 -0500
committerDave Parks <davep@lindenlab.com>2013-04-02 15:45:17 -0500
commit679a095aa04234f48c10139138ca54939099defa (patch)
tree9a9b91a0b941dcd6da0ef5fde323fa34701d18b1 /indra/newview
parent8037601dedbe9e0a3f1e588b6109bbad6adb1cff (diff)
NORSPEC-74 Fix for assert when Debug GL enabled when rendering materials.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/lldrawpoolmaterials.cpp5
-rw-r--r--indra/newview/llvovolume.cpp8
2 files changed, 8 insertions, 5 deletions
diff --git a/indra/newview/lldrawpoolmaterials.cpp b/indra/newview/lldrawpoolmaterials.cpp
index d6cca9abe2..3e0f9c9d4d 100644
--- a/indra/newview/lldrawpoolmaterials.cpp
+++ b/indra/newview/lldrawpoolmaterials.cpp
@@ -113,6 +113,9 @@ void LLDrawPoolMaterials::renderDeferred(S32 pass)
llassert(pass < sizeof(type_list)/sizeof(U32));
U32 type = type_list[pass];
+
+ U32 mask = mShader->mAttributeMask;
+
LLCullResult::drawinfo_iterator begin = gPipeline.beginRenderMap(type);
LLCullResult::drawinfo_iterator end = gPipeline.endRenderMap(type);
@@ -137,7 +140,7 @@ void LLDrawPoolMaterials::renderDeferred(S32 pass)
mShader->setMinimumAlpha(params.mAlphaMaskCutoff);
- pushBatch(params, VERTEX_DATA_MASK, TRUE);
+ pushBatch(params, mask, TRUE);
}
}
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp
index fd9f3dc486..8a1f00aa0e 100644
--- a/indra/newview/llvovolume.cpp
+++ b/indra/newview/llvovolume.cpp
@@ -4771,10 +4771,10 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group)
genDrawInfo(group, simple_mask | LLVertexBuffer::MAP_TEXTURE_INDEX, simple_faces, FALSE, batch_textures);
genDrawInfo(group, fullbright_mask | LLVertexBuffer::MAP_TEXTURE_INDEX, fullbright_faces, FALSE, batch_textures);
genDrawInfo(group, alpha_mask | LLVertexBuffer::MAP_TEXTURE_INDEX, alpha_faces, TRUE, batch_textures);
- genDrawInfo(group, bump_mask, bump_faces, FALSE, FALSE);
- genDrawInfo(group, norm_mask, norm_faces, FALSE, FALSE);
- genDrawInfo(group, spec_mask, spec_faces, FALSE, FALSE);
- genDrawInfo(group, normspec_mask, normspec_faces, FALSE, FALSE);
+ genDrawInfo(group, bump_mask | LLVertexBuffer::MAP_TEXTURE_INDEX, bump_faces, FALSE, FALSE);
+ genDrawInfo(group, norm_mask | LLVertexBuffer::MAP_TEXTURE_INDEX, norm_faces, FALSE, FALSE);
+ genDrawInfo(group, spec_mask | LLVertexBuffer::MAP_TEXTURE_INDEX, spec_faces, FALSE, FALSE);
+ genDrawInfo(group, normspec_mask | LLVertexBuffer::MAP_TEXTURE_INDEX, normspec_faces, FALSE, FALSE);
if (!LLPipeline::sDelayVBUpdate)
{