Skip to content
Snippets Groups Projects
Commit f4f18613 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix uninitialized usage of LLVector4a variable in LLMatrix4a getColumn

parent 53f14895
No related branches found
No related tags found
No related merge requests found
...@@ -276,9 +276,10 @@ class alignas(16) LLMatrix4a ...@@ -276,9 +276,10 @@ class alignas(16) LLMatrix4a
} }
template<int N> template<int N>
inline LLVector4a getColumn() inline LLVector4a getColumn() const
{ {
LLVector4a v; LLVector4a v;
v.clear();
v.copyComponent<0>(mMatrix[0].getScalarAt<N>()); v.copyComponent<0>(mMatrix[0].getScalarAt<N>());
v.copyComponent<1>(mMatrix[1].getScalarAt<N>()); v.copyComponent<1>(mMatrix[1].getScalarAt<N>());
v.copyComponent<2>(mMatrix[2].getScalarAt<N>()); v.copyComponent<2>(mMatrix[2].getScalarAt<N>());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment