diff options
author | Roxie Linden <roxie@lindenlab.com> | 2010-12-23 01:48:44 -0800 |
---|---|---|
committer | Roxie Linden <roxie@lindenlab.com> | 2010-12-23 01:48:44 -0800 |
commit | 57153cf0f1fffe669b9d8871c33f9c4aaba67a2f (patch) | |
tree | 42e58fd10165bcd4bb7e65f5fbab7a16b518ddc3 /indra/llmath/llvector4a.h | |
parent | 4351160958efa1c352e8af1ab3f48c1486ba9c5c (diff) |
SH-655 - Project mesh viewer crashes on exit.
A copy constructor was implemented which did a memcpy,
which included the vtable pointer which was to another object of another
class (same child though). This resulted in the wrong destructor
being called.
The reason for the memcpy was for alignment purposes.
The solution was to move to LLVector4a, which is intrinsicly aligned.
Also, did some performance optimizations based on the LLVector4a optimizations.
The solution was to re-implement the
Diffstat (limited to 'indra/llmath/llvector4a.h')
-rw-r--r-- | indra/llmath/llvector4a.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llmath/llvector4a.h b/indra/llmath/llvector4a.h index 79022eade3..596082509d 100644 --- a/indra/llmath/llvector4a.h +++ b/indra/llmath/llvector4a.h @@ -67,7 +67,7 @@ public: extern const LLVector4a LL_V4A_ZERO; return LL_V4A_ZERO; } - + // Return a vector of all epsilon, where epsilon is a small float suitable for approximate equality checks static inline const LLVector4a& getEpsilon() { |