Bug 1204824. Make Matrix4x4::PreScale scale all values in the first three rows. r=bas
authorTimothy Nikkel <tnikkel@gmail.com>
Wed, 16 Sep 2015 23:39:09 -0500
changeset 262981 e14ce8302fd779a1a39e2ed95d3016bc3319000d
parent 262980 c05e13ac8ce00b2b6b4c9e2baf27cc5f403b15b9
child 262982 309502b3ea1f8d0e962d5158d0cf87c57bce85c3
push id29385
push usercbook@mozilla.com
push dateThu, 17 Sep 2015 12:56:50 +0000
treeherdermozilla-central@de0e763b5210 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbas
bugs1204824
milestone43.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1204824. Make Matrix4x4::PreScale scale all values in the first three rows. r=bas
gfx/2d/Matrix.h
--- a/gfx/2d/Matrix.h
+++ b/gfx/2d/Matrix.h
@@ -693,22 +693,25 @@ public:
   /**
    * Similar to PreTranslate, but applies a scale instead of a translation.
    */
   Matrix4x4 &PreScale(Float aX, Float aY, Float aZ)
   {
     _11 *= aX;
     _12 *= aX;
     _13 *= aX;
+    _14 *= aX;
     _21 *= aY;
     _22 *= aY;
     _23 *= aY;
+    _24 *= aY;
     _31 *= aZ;
     _32 *= aZ;
     _33 *= aZ;
+    _34 *= aZ;
 
     return *this;
   }
 
   /**
    * Similar to PostTranslate, but applies a scale instead of a translation.
    */
   Matrix4x4 &PostScale(Float aScaleX, Float aScaleY, Float aScaleZ)