Skip to content

Commit f70f92b

Browse files
committed
Fixed explicit check for undefined GraphicsCanvasRenderer's parentMatrix, which meant null could not be passed as an argument.
1 parent 9293891 commit f70f92b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gameobjects/graphics/GraphicsCanvasRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ var GraphicsCanvasRenderer = function (renderer, src, interpolationPercentage, c
7070
}
7171

7272
ctx.save();
73-
if (parentMatrix !== undefined)
73+
if (parentMatrix)
7474
{
7575
var matrix = parentMatrix.matrix;
7676
ctx.transform(matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5]);

0 commit comments

Comments
 (0)