Commit f18d9883 authored by Rye Mutt's avatar Rye Mutt 🍞
Browse files

Small cleanup to alrenderutil

parent 7020270b
......@@ -278,7 +278,7 @@ void ALRenderUtil::renderTonemap(LLRenderTarget* src, LLRenderTarget* dst)
{
src->bindTexture(0, channel, LLTexUnit::TFO_POINT);
}
tone_shader->uniform2f(LLShaderMgr::DEFERRED_SCREEN_RES, dst->getWidth(), dst->getHeight());
tone_shader->uniform2f(LLShaderMgr::DEFERRED_SCREEN_RES, src->getWidth(), src->getHeight());
tone_shader->uniform1f(al_exposure, mTonemapExposure);
switch (mTonemapType)
......@@ -410,8 +410,7 @@ void ALRenderUtil::renderSharpen(LLRenderTarget* src, LLRenderTarget* dst)
sharpen_shader->bind();
// Draw
src->bindTexture(0, 0, LLTexUnit::TFO_POINT);
gGL.getTexUnit(0)->setTextureColorSpace(LLTexUnit::TCS_LINEAR);
src->bindTexture(0, 0, LLTexUnit::TFO_POINT, LLTexUnit::TCS_LINEAR);
mRenderBuffer->setBuffer(LLVertexBuffer::MAP_VERTEX);
mRenderBuffer->drawArrays(LLRender::TRIANGLES, 0, 3);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment