Skip to content

Commit 1c73ee3

Browse files
committed
add backward compatibility for setTransform function phaserjs#6965
1 parent 97e3e67 commit 1c73ee3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gameobjects/components/TransformMatrix.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,8 @@ var TransformMatrix = new Class({
707707
*/
708708
setToContext: function (ctx)
709709
{
710-
ctx.setTransform(this);
710+
// using old way for old browser compatibility #6965
711+
ctx.setTransform(this.a, this.b, this.c, this.d, this.e, this.f);
711712

712713
return ctx;
713714
},

0 commit comments

Comments
 (0)