Skip to content
Snippets Groups Projects
Commit f18d9883 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Small cleanup to alrenderutil

parent 7020270b
Branches
No related tags found
No related merge requests found
...@@ -278,7 +278,7 @@ void ALRenderUtil::renderTonemap(LLRenderTarget* src, LLRenderTarget* dst) ...@@ -278,7 +278,7 @@ void ALRenderUtil::renderTonemap(LLRenderTarget* src, LLRenderTarget* dst)
{ {
src->bindTexture(0, channel, LLTexUnit::TFO_POINT); 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); tone_shader->uniform1f(al_exposure, mTonemapExposure);
switch (mTonemapType) switch (mTonemapType)
...@@ -410,8 +410,7 @@ void ALRenderUtil::renderSharpen(LLRenderTarget* src, LLRenderTarget* dst) ...@@ -410,8 +410,7 @@ void ALRenderUtil::renderSharpen(LLRenderTarget* src, LLRenderTarget* dst)
sharpen_shader->bind(); sharpen_shader->bind();
// Draw // Draw
src->bindTexture(0, 0, LLTexUnit::TFO_POINT); src->bindTexture(0, 0, LLTexUnit::TFO_POINT, LLTexUnit::TCS_LINEAR);
gGL.getTexUnit(0)->setTextureColorSpace(LLTexUnit::TCS_LINEAR);
mRenderBuffer->setBuffer(LLVertexBuffer::MAP_VERTEX); mRenderBuffer->setBuffer(LLVertexBuffer::MAP_VERTEX);
mRenderBuffer->drawArrays(LLRender::TRIANGLES, 0, 3); mRenderBuffer->drawArrays(LLRender::TRIANGLES, 0, 3);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment