summaryrefslogtreecommitdiff
path: root/indra/llrender/llrendernavprim.cpp
diff options
context:
space:
mode:
authorprep <prep@lindenlab.com>2012-04-05 14:27:05 -0400
committerprep <prep@lindenlab.com>2012-04-05 14:27:05 -0400
commitfef78653cd2a81efb032d7570fc5e5a0814086b7 (patch)
treecdf3369c7bf774ce5c5a099df9eaeb9498b403a1 /indra/llrender/llrendernavprim.cpp
parent8918c38f13ff09377964eedd8578feb9107cfc95 (diff)
consolidate navmesh rendering calls
Diffstat (limited to 'indra/llrender/llrendernavprim.cpp')
-rw-r--r--indra/llrender/llrendernavprim.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/indra/llrender/llrendernavprim.cpp b/indra/llrender/llrendernavprim.cpp
index 2632428dfd..100b614aae 100644
--- a/indra/llrender/llrendernavprim.cpp
+++ b/indra/llrender/llrendernavprim.cpp
@@ -75,16 +75,10 @@ void LLRenderNavPrim::renderLLTri( const LLVector3& a, const LLVector3& b, const
gGL.end();
}
//=============================================================================
-void LLRenderNavPrim::renderNavMeshVB( LLVertexBuffer* pVBO, int vertCnt )
+void LLRenderNavPrim::renderNavMeshVB( U32 mode, LLVertexBuffer* pVBO, int vertCnt )
{
pVBO->setBuffer( LLVertexBuffer::MAP_VERTEX | LLVertexBuffer::MAP_COLOR | LLVertexBuffer::MAP_NORMAL );
- pVBO->drawArrays( LLRender::TRIANGLES, 0, vertCnt );
-}
-//=============================================================================
-void LLRenderNavPrim::renderNavMeshEdgeVB( LLVertexBuffer* pVBO, int vertCnt )
-{
- pVBO->setBuffer( LLVertexBuffer::MAP_VERTEX | LLVertexBuffer::MAP_COLOR | LLVertexBuffer::MAP_NORMAL );
- pVBO->drawArrays( LLRender::LINES, 0, vertCnt );
+ pVBO->drawArrays( mode, 0, vertCnt );
}
//=============================================================================
void LLRenderNavPrim::renderStar( const LLVector3& center, const float scale, const LLColor4U& color ) const