diff options
author | Don Kjer <don@lindenlab.com> | 2011-07-08 18:25:07 -0700 |
---|---|---|
committer | Don Kjer <don@lindenlab.com> | 2011-07-08 18:25:07 -0700 |
commit | b9d6b5ef9a9797709397be983ec74c30cd1e0ce2 (patch) | |
tree | 9886deac5d65ee1873e8c75ed2af62943c872f63 /indra/newview/lldrawpoolterrain.cpp | |
parent | 615cc856a8abf44f62c58962f8b53178f9708ee3 (diff) | |
parent | ccb3ad90001c2b19cbd690d67317651ee0182f42 (diff) |
Merge viewer-development -> mesh-development
Diffstat (limited to 'indra/newview/lldrawpoolterrain.cpp')
-rw-r--r-- | indra/newview/lldrawpoolterrain.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/lldrawpoolterrain.cpp b/indra/newview/lldrawpoolterrain.cpp index 84eeace9c6..3daa0f8261 100644 --- a/indra/newview/lldrawpoolterrain.cpp +++ b/indra/newview/lldrawpoolterrain.cpp @@ -143,7 +143,7 @@ void LLDrawPoolTerrain::beginRenderPass( S32 pass ) void LLDrawPoolTerrain::endRenderPass( S32 pass ) { LLFastTimer t(FTM_RENDER_TERRAIN); - LLFacePool::endRenderPass(pass); + //LLFacePool::endRenderPass(pass); if (mVertexShaderLevel > 1 && sShader->mShaderLevel > 0) { sShader->unbind(); @@ -215,8 +215,10 @@ void LLDrawPoolTerrain::render(S32 pass) { //use fullbright shader for highlighting LLGLSLShader* old_shader = sShader; sShader->unbind(); - sShader = &gObjectFullbrightProgram; + sShader = &gObjectFullbrightNonIndexedProgram; sShader->bind(); + LLGLEnable polyOffset(GL_POLYGON_OFFSET_FILL); + glPolygonOffset(-1.0f, -1.0f); renderOwnership(); sShader = old_shader; sShader->bind(); |