diff options
author | Rye Cogtail <rye@lindenlab.com> | 2024-09-30 23:20:21 -0400 |
---|---|---|
committer | Rye Cogtail <rye@lindenlab.com> | 2024-09-30 23:20:21 -0400 |
commit | 022f4bd043ffe5864fce244651c725e70c15c28c (patch) | |
tree | 50b1e6ba9fee413a8367bd8ae4911ff08dc8c180 /indra/newview/llvoavatar.cpp | |
parent | 75a1e50fb25e52de29fc2155905c0592736eea80 (diff) |
Fix GCC complaint about type truncation
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rw-r--r-- | indra/newview/llvoavatar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 8178dade8b..c8a4e4c205 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -1940,10 +1940,10 @@ bool LLVOAvatar::lineSegmentIntersect(const LLVector4a& start, const LLVector4a& if (linesegment_sphere(LLVector3(glm::value_ptr(p1)), LLVector3(glm::value_ptr(p2)), LLVector3(0,0,0), 1.f, position, norm)) { - glm::vec3 res_pos(glm::make_vec3(position.mV)); + glm::vec3 res_pos(glm::make_vec3(LLVector4(position).mV)); res_pos = mul_mat4_vec3(mat, res_pos); - glm::vec3 res_norm(glm::make_vec3(norm.mV)); + glm::vec3 res_norm(glm::make_vec3(LLVector4(norm).mV)); res_norm = glm::normalize(res_norm); res_norm = glm::mat3(norm_mat) * res_norm; |