Bug 1204824 - Make Matrix4x4::PreScale scale all values in the first three rows. r=bas, a=sylvestre
authorTimothy Nikkel <tnikkel@gmail.com>
Wed, 16 Sep 2015 23:39:09 -0500
changeset 289364 e38d436d1739ea986c32f1b79c7c0f6c50fef72c
parent 289363 1c70c7edad8d421df4676f1888fc6921a8000000
child 289365 c9a4c0cc5881a8a2cb0281fd6436956067b848d4
push id5090
push usercbook@mozilla.com
push dateThu, 24 Sep 2015 10:23:49 +0000
treeherdermozilla-beta@e38d436d1739 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbas, sylvestre
bugs1204824
milestone42.0
Bug 1204824 - Make Matrix4x4::PreScale scale all values in the first three rows. r=bas, a=sylvestre
gfx/2d/Matrix.h
--- a/gfx/2d/Matrix.h
+++ b/gfx/2d/Matrix.h
@@ -665,22 +665,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)