diff options
author | Rye <rye@lindenlab.com> | 2025-01-23 23:10:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-23 23:10:57 -0500 |
commit | aa02a5b3f44243e55f85e121d7d53e96e94a7422 (patch) | |
tree | dc1f37243597961c9389746fb0a12bb8c8e5d71c /indra/llmath/llvector4a.h | |
parent | 4ff56cfac8e3aaf1459c656306e2c18e7f63eaeb (diff) | |
parent | 4763195e186f8c56c2ee92d4e0154c95aa011997 (diff) |
Merge pull request #3468 from secondlife/rye/forever-3339
Fall back mul_mat4_vec3 to scalar implementation to attempt crash mitigation
Diffstat (limited to 'indra/llmath/llvector4a.h')
-rw-r--r-- | indra/llmath/llvector4a.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/llmath/llvector4a.h b/indra/llmath/llvector4a.h index 8ef560dadf..4004852e06 100644 --- a/indra/llmath/llvector4a.h +++ b/indra/llmath/llvector4a.h @@ -33,6 +33,9 @@ class LLRotation; #include <assert.h> #include "llpreprocessor.h" #include "llmemory.h" +#include "glm/vec3.hpp" +#include "glm/vec4.hpp" +#include "glm/gtc/type_ptr.hpp" /////////////////////////////////// // FIRST TIME USERS PLEASE READ @@ -364,6 +367,16 @@ public: inline operator LLQuad() const; + explicit inline operator glm::vec3() const + { + return glm::make_vec3(getF32ptr()); + }; + + explicit inline operator glm::vec4() const + { + return glm::make_vec4(getF32ptr()); + }; + private: LLQuad mQ{}; }; |