Skip to content

Commit d00f329

Browse files
authored
Merge pull request #6970 from rafa-fie/master
add backward compatibility for setTransform function #6965
2 parents 81117f3 + 1c73ee3 commit d00f329

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gameobjects/components/TransformMatrix.js

+2-1
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)