From 970395fba8aa88974c2c39fe8c0d06bb58a22bab Mon Sep 17 00:00:00 2001 From: castano Date: Thu, 28 Feb 2008 17:02:29 +0000 Subject: [PATCH] Fix osx build. --- src/nvtt/squish/simd_ve.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/nvtt/squish/simd_ve.h b/src/nvtt/squish/simd_ve.h index d22b370..56ed95e 100644 --- a/src/nvtt/squish/simd_ve.h +++ b/src/nvtt/squish/simd_ve.h @@ -50,6 +50,16 @@ public: return *this; } + Vec4( const float * v ) + { + union { vector float v; float c[4]; } u; + u.c[0] = v[0]; + u.c[1] = v[1]; + u.c[2] = v[2]; + u.c[3] = v[3]; + m_v = u.v; + } + Vec4( float x, float y, float z, float w ) { union { vector float v; float c[4]; } u;