summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@geenzo.com>2024-01-24 22:34:25 -0800
committerJonathan "Geenz" Goodman <geenz@geenzo.com>2024-01-24 22:34:25 -0800
commit4e90bd3cc0a4c1021cf8e688e008a0f0418d8364 (patch)
tree4d17cfa0fbcbddfbdc53927d11617b857daed044 /indra
parent85bf567010d54b64b3144397bff7c3c0448d85da (diff)
https://github.com/secondlife/viewer-issues/issues/36 Make sure we set the mirror flag appropriately.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/lldrawpoolmaterials.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/lldrawpoolmaterials.cpp b/indra/newview/lldrawpoolmaterials.cpp
index ec229711ea..063dd948f7 100644
--- a/indra/newview/lldrawpoolmaterials.cpp
+++ b/indra/newview/lldrawpoolmaterials.cpp
@@ -185,7 +185,11 @@ void LLDrawPoolMaterials::renderDeferred(S32 pass)
if (gPipeline.mHeroProbeManager.isMirrorPass())
{
- glUniform1f(LLShaderMgr::MIRROR_FLAG, 1);
+ mShader->uniform1f(LLShaderMgr::MIRROR_FLAG, 1);
+ }
+ else
+ {
+ mShader->uniform1f(LLShaderMgr::MIRROR_FLAG, 0);
}
LLVector4 clipPlane = LLVector4(gPipeline.mHeroProbeManager.currentMirrorClip()[0],