summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2025-04-28 17:17:29 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-04-28 17:40:21 +0300
commit04c0bc100401c8f4541b6eeda3a110291ee54166 (patch)
treefb45ac869af4ebb0be92fbf31d2fe78e99d9ac7f
parent69a81d641abb7427d22a4bfd6014b696476dd8b7 (diff)
#3978 Fix offset in Land Owner highlights
texture_stride with '-1' was added in DRTVWR-592 along with getMetersPerGrid multiplication.
-rw-r--r--indra/newview/llsurfacepatch.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/indra/newview/llsurfacepatch.cpp b/indra/newview/llsurfacepatch.cpp
index 6f99da5957..875af76c10 100644
--- a/indra/newview/llsurfacepatch.cpp
+++ b/indra/newview/llsurfacepatch.cpp
@@ -210,7 +210,6 @@ void LLSurfacePatch::eval(const U32 x, const U32 y, const U32 stride, LLVector3
llassert_always(vertex && normal && tex1);
U32 surface_stride = mSurfacep->getGridsPerEdge();
- U32 texture_stride = mSurfacep->getGridsPerEdge() - 1;
U32 point_offset = x + y*surface_stride;
*normal = getNormal(x, y);
@@ -223,7 +222,7 @@ void LLSurfacePatch::eval(const U32 x, const U32 y, const U32 stride, LLVector3
// tex0 is used for ownership overlay
LLVector3 rel_pos = pos_agent - mSurfacep->getOriginAgent();
- LLVector3 tex_pos = rel_pos * (1.f / (texture_stride * mSurfacep->getMetersPerGrid()));
+ LLVector3 tex_pos = rel_pos * (1.f / (surface_stride * mSurfacep->getMetersPerGrid()));
tex0->mV[0] = tex_pos.mV[0];
tex0->mV[1] = tex_pos.mV[1];