summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2013-06-18 19:51:02 -0500
committerDave Parks <davep@lindenlab.com>2013-06-18 19:51:02 -0500
commit45b1466de60dc1788353508debbb321b59875884 (patch)
treea73c4c9f105ba437df2aa3739c0d09739d1805a4 /indra/newview/pipeline.cpp
parentccd04cd66c0a550694fefe41042ef47466780a92 (diff)
Review cleanup
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rwxr-xr-xindra/newview/pipeline.cpp6
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();
}
}