From 41d9825b9aa1eb986990cd43513f7bdc6be0b88e Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Thu, 5 Aug 2010 18:11:49 -0700 Subject: Fix length normilization bug in rsMatrixLoadRotate. Change-Id: Ibdc1a64f2db6110acd971f8cacd6b1f9c09b02de --- libs/rs/rsMatrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/rs/rsMatrix.cpp') diff --git a/libs/rs/rsMatrix.cpp b/libs/rs/rsMatrix.cpp index 2f2140523c4e..94eef136262e 100644 --- a/libs/rs/rsMatrix.cpp +++ b/libs/rs/rsMatrix.cpp @@ -73,7 +73,7 @@ void Matrix::loadRotate(float rot, float x, float y, float z) s = sinf(rot); const float len = sqrtf(x*x + y*y + z*z); - if (!(len != 1)) { + if (len != 1) { const float recipLen = 1.f / len; x *= recipLen; y *= recipLen; -- cgit v1.2.3-59-g8ed1b