commit | 41d9825b9aa1eb986990cd43513f7bdc6be0b88e | [log] [tgz] |
---|---|---|
author | Jason Sams <rjsams@android.com> | Thu Aug 05 18:11:49 2010 -0700 |
committer | Jason Sams <rjsams@android.com> | Thu Aug 05 18:11:49 2010 -0700 |
tree | df8362d3bf277903a52142cf8a7d005053b8665e | |
parent | 1911c60a4eeff9ee28734687ae7699bd2290931c [diff] [blame] |
Fix length normilization bug in rsMatrixLoadRotate. Change-Id: Ibdc1a64f2db6110acd971f8cacd6b1f9c09b02de
diff --git a/libs/rs/rsMatrix.cpp b/libs/rs/rsMatrix.cpp index 2f21405..94eef13 100644 --- a/libs/rs/rsMatrix.cpp +++ b/libs/rs/rsMatrix.cpp
@@ -73,7 +73,7 @@ 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;