MAINT-616 Fix for particles not rendering.
parent
42cdb4a4b2
commit
cea270c50a
|
|
@ -407,7 +407,7 @@ void LLDrawPoolAlpha::renderAlpha(U32 mask)
|
|||
|
||||
if ((params.mVertexBuffer->getTypeMask() & mask) != mask)
|
||||
{ //FIXME!
|
||||
//llwarns << "Missing required components, skipping render batch." << llendl;
|
||||
llwarns << "Missing required components, skipping render batch." << llendl;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -69,8 +69,15 @@ void LLVOPartGroup::restoreGL()
|
|||
//indices and texcoords are always the same, set once
|
||||
LLStrider<U16> indicesp;
|
||||
|
||||
sVB->getIndexStrider(indicesp);
|
||||
LLStrider<LLVector4a> verticesp;
|
||||
|
||||
sVB->getIndexStrider(indicesp);
|
||||
sVB->getVertexStrider(verticesp);
|
||||
|
||||
LLVector4a v;
|
||||
v.set(0,0,0,0);
|
||||
|
||||
|
||||
U16 vert_offset = 0;
|
||||
|
||||
for (U32 i = 0; i < LL_MAX_PARTICLE_COUNT; i++)
|
||||
|
|
@ -83,6 +90,8 @@ void LLVOPartGroup::restoreGL()
|
|||
*indicesp++ = vert_offset + 3;
|
||||
*indicesp++ = vert_offset + 2;
|
||||
|
||||
*verticesp++ = v;
|
||||
|
||||
vert_offset += 4;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -52,10 +52,11 @@ public:
|
|||
|
||||
enum
|
||||
{
|
||||
VERTEX_DATA_MASK = (1 << LLVertexBuffer::TYPE_VERTEX) |
|
||||
(1 << LLVertexBuffer::TYPE_NORMAL) |
|
||||
(1 << LLVertexBuffer::TYPE_TEXCOORD0) |
|
||||
(1 << LLVertexBuffer::TYPE_COLOR)
|
||||
VERTEX_DATA_MASK = LLVertexBuffer::MAP_VERTEX |
|
||||
LLVertexBuffer::MAP_NORMAL |
|
||||
LLVertexBuffer::MAP_TEXCOORD0 |
|
||||
LLVertexBuffer::MAP_COLOR |
|
||||
LLVertexBuffer::MAP_TEXTURE_INDEX
|
||||
};
|
||||
|
||||
LLVOPartGroup(const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp);
|
||||
|
|
|
|||
Loading…
Reference in New Issue