diff options
author | ruslantproductengine <ruslantproductengine@lindenlab.com> | 2016-05-13 18:47:23 +0300 |
---|---|---|
committer | ruslantproductengine <ruslantproductengine@lindenlab.com> | 2016-05-13 18:47:23 +0300 |
commit | 1b5af4be298198cedc407b6b294b2d71129d7731 (patch) | |
tree | 0fdc088875470a70c684da2ef7fea1055775b203 /indra/llrender/llrender.cpp | |
parent | bceafa5062db394048312aa7fe0a7706fb9524b7 (diff) |
Add invert texture coordinates for media textures.
Diffstat (limited to 'indra/llrender/llrender.cpp')
-rwxr-xr-x | indra/llrender/llrender.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp index 69420dd0bb..b5ed67f66a 100755 --- a/indra/llrender/llrender.cpp +++ b/indra/llrender/llrender.cpp @@ -1466,6 +1466,14 @@ U32 LLRender::getMatrixMode() return mMatrixMode; } +void LLRender::setInverseTexCoordByY(bool v) +{ + LLGLSLShader* shader = LLGLSLShader::sCurBoundShaderPtr; + if (shader) + { + shader->uniform1b(LLShaderMgr::INVERSE_TEX_Y, v); + } +} void LLRender::loadIdentity() { |