From 1c73ee3b7ba2764ebf4160ce7a1918f6dbce4744 Mon Sep 17 00:00:00 2001 From: Rafa Date: Fri, 29 Nov 2024 14:24:27 +0100 Subject: [PATCH] add backward compatibility for setTransform function #6965 --- src/gameobjects/components/TransformMatrix.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gameobjects/components/TransformMatrix.js b/src/gameobjects/components/TransformMatrix.js index 9bca8762d8..6b3e6e60a0 100644 --- a/src/gameobjects/components/TransformMatrix.js +++ b/src/gameobjects/components/TransformMatrix.js @@ -707,7 +707,8 @@ var TransformMatrix = new Class({ */ setToContext: function (ctx) { - ctx.setTransform(this); + // using old way for old browser compatibility #6965 + ctx.setTransform(this.a, this.b, this.c, this.d, this.e, this.f); return ctx; },