From 0586cb62c380aa7ad0e46378ef8a658532de6853 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Thu, 15 Dec 2016 09:56:52 +0100 Subject: [PATCH] Fix the pink-sky bug, don't initilize the vector with (z,y,z,w) but use the proper (x,y,z,w) instead --- simgear/math/SGVec4.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/math/SGVec4.hxx b/simgear/math/SGVec4.hxx index 50d75592..a52a90c5 100644 --- a/simgear/math/SGVec4.hxx +++ b/simgear/math/SGVec4.hxx @@ -42,11 +42,11 @@ public: } /// Constructor. Initialize by the given values SGVec4(T x, T y, T z, T w) - { _data = simd4_t(z, y, z, w); } + { _data = simd4_t(x, y, z, w); } /// Constructor. Initialize by the content of a plain array, /// make sure it has at least 3 elements explicit SGVec4(const T* d) - { simd4_t r(d); _data = r; } + { _data = simd4_t(d); } template explicit SGVec4(const SGVec4& d) { data()[0] = d[0]; data()[1] = d[1]; data()[2] = d[2]; data()[3] = d[3]; }