diff options
author | Dave Parks <davep@lindenlab.com> | 2013-04-15 13:16:14 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2013-04-15 13:16:14 -0500 |
commit | 8025b8b2bc6028ed268e191d432cb3f740e351db (patch) | |
tree | ecc74cb4b2dceaf28b77919a2be04d33e80f10aa /indra/newview/pipeline.cpp | |
parent | 41097e74ecea7f99d2e4b0ee03dfa40ed6463f46 (diff) |
NORSPEC-49 Add shader profiler, add support for ARB_depth_clamp where available
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r-- | indra/newview/pipeline.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 89df61919e..c074a0e16e 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -9023,6 +9023,9 @@ void LLPipeline::renderShadow(glh::matrix4f& view, glh::matrix4f& proj, LLCamera LLGLEnable cull(GL_CULL_FACE); + //enable depth clamping if available + LLGLEnable depth_clamp(gGLManager.mHasDepthClamp ? GL_DEPTH_CLAMP : 0); + if (use_shader) { gDeferredShadowCubeProgram.bind(); |