diff --git a/ChangeLog b/ChangeLog index cc73853..cd2aece 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ NVIDIA Texture Tools version 2.0.7 * Output correct exit codes. Fixes issue 92. * Fix thread-safety errors. Fixes issue 90. + * Add SIMD power method. Fixes issue 94. NVIDIA Texture Tools version 2.0.6 * Fix dll version checking. diff --git a/src/nvtt/squish/maths.cpp b/src/nvtt/squish/maths.cpp index 6e4d2ba..d7a37b4 100644 --- a/src/nvtt/squish/maths.cpp +++ b/src/nvtt/squish/maths.cpp @@ -94,7 +94,8 @@ Vec3 ComputePrincipleComponent( Sym3x3 const& matrix ) const int NUM = 8; Vec3 v(1, 1, 1); - for (int i = 0; i < POWER_ITERATION_COUNT; i++) { + for (int i = 0; i < POWER_ITERATION_COUNT; i++) + { float x = v.X() * matrix[0] + v.Y() * matrix[1] + v.Z() * matrix[2]; float y = v.X() * matrix[1] + v.Y() * matrix[3] + v.Z() * matrix[4]; float z = v.X() * matrix[2] + v.Y() * matrix[4] + v.Z() * matrix[5];