summaryrefslogtreecommitdiff
path: root/indra/newview/llface.cpp
diff options
context:
space:
mode:
authorRye Mutt <rye@lindenlab.com>2024-09-12 09:22:10 -0700
committerGitHub <noreply@github.com>2024-09-12 11:22:10 -0500
commitb713f56d07cffb21cad5928bf30d6d4b6dc79de9 (patch)
tree9c64cef93e350c153c8ab590141650f21b99ed66 /indra/newview/llface.cpp
parent264c57831bc6ca9be1c465c10a2558c3d28b936e (diff)
Replace glh_linear usage with GLM (#2554)
Diffstat (limited to 'indra/newview/llface.cpp')
-rw-r--r--indra/newview/llface.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp
index a1ec75e34b..48fddc32db 100644
--- a/indra/newview/llface.cpp
+++ b/indra/newview/llface.cpp
@@ -1487,9 +1487,9 @@ bool LLFace::getGeometryVolume(const LLVolume& volume,
}
//TODO -- cache this (check profile marker above)?
- glh::matrix4f m((F32*) skin->mBindShapeMatrix.getF32ptr());
- m = m.inverse().transpose();
- mat_normal.loadu(m.m);
+ glm::mat4 m = glm::make_mat4((F32*)skin->mBindShapeMatrix.getF32ptr());
+ m = glm::transpose(glm::inverse(m));
+ mat_normal.loadu(glm::value_ptr(m));
}
else
{