diff options
author | prep <prep@lindenlab.com> | 2012-01-05 18:00:41 -0500 |
---|---|---|
committer | prep <prep@lindenlab.com> | 2012-01-05 18:00:41 -0500 |
commit | b2c024cd79efab92e920f37521ae1c34021b2aa6 (patch) | |
tree | 90691d6d92da1321deb683d9486f9c4cc6653b29 /indra/llrender/llrendernavprim.cpp | |
parent | 1e45d1ae4c25ae8ec73d2b4dc40a5d4efb23121c (diff) |
Some gl state cleanup for physic shapes vbos.'
Diffstat (limited to 'indra/llrender/llrendernavprim.cpp')
-rw-r--r-- | indra/llrender/llrendernavprim.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/indra/llrender/llrendernavprim.cpp b/indra/llrender/llrendernavprim.cpp index ac8d45789c..3d76f08496 100644 --- a/indra/llrender/llrendernavprim.cpp +++ b/indra/llrender/llrendernavprim.cpp @@ -86,11 +86,10 @@ void LLRenderNavPrim::renderTri( const LLVector3& a, const LLVector3& b, const L void LLRenderNavPrim::renderNavMeshVB( LLVertexBuffer* pVBO, int vertCnt )
{
LLGLSUIDefault gls_ui;
+ glEnable( GL_DEPTH_TEST );
+ LLGLEnable cull( GL_CULL_FACE );
glLineWidth(1.5f);
- LLGLSLShader::sNoFixedFunction = false;
-
- glPolygonMode( GL_FRONT_AND_BACK, GL_FILL );
- LLGLEnable cull( GL_CULL_FACE ); + LLGLSLShader::sNoFixedFunction = false; //pass 1 filled
pVBO->setBuffer( LLVertexBuffer::MAP_VERTEX | LLVertexBuffer::MAP_COLOR | LLVertexBuffer::MAP_NORMAL );
pVBO->drawArrays( LLRender::TRIANGLES, 0, vertCnt );
|