diff options
author | Runitai Linden <davep@lindenlab.com> | 2021-12-07 16:32:38 -0600 |
---|---|---|
committer | Runitai Linden <davep@lindenlab.com> | 2021-12-07 16:32:38 -0600 |
commit | 8a18b5e427e261ccc60eeb673f140eff3690bf7b (patch) | |
tree | 36d6d1a050a8c9483593e6d0d04ce472e87518d2 /indra/llrender | |
parent | 66d88733ee987362dd9efb807faa6198ec655175 (diff) |
SL-16462 Fix for broken water clip plane during water reflection/refraction map render.
Diffstat (limited to 'indra/llrender')
-rw-r--r-- | indra/llrender/llgl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llrender/llgl.cpp b/indra/llrender/llgl.cpp index 64db095dec..18a79d5264 100644 --- a/indra/llrender/llgl.cpp +++ b/indra/llrender/llgl.cpp @@ -2112,7 +2112,8 @@ LLGLUserClipPlane::LLGLUserClipPlane(const LLPlane& p, const glh::matrix4f& mode mModelview = modelview; mProjection = projection; - setPlane(p[0], p[1], p[2], p[3]); + //flip incoming LLPlane to get consistent behavior compared to frustum culling + setPlane(-p[0], -p[1], -p[2], -p[3]); } } |