diff options
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rwxr-xr-x | indra/newview/pipeline.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 6efdf47ec5..30c726f76a 100755 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -2676,9 +2676,7 @@ void LLPipeline::downsampleDepthBuffer(LLRenderTarget& source, LLRenderTarget& d } dest.bindTarget(); - - - gDownsampleDepthProgram.bind(); + dest.clear(GL_DEPTH_BUFFER_BIT); LLStrider<LLVector3> vert; mDeferredVB->getVertexStrider(vert); @@ -2719,7 +2717,7 @@ void LLPipeline::downsampleDepthBuffer(LLRenderTarget& source, LLRenderTarget& d } else { - gDownsampleDepthProgram.unbind(); + shader->unbind(); } } |