Skip to content

Graphics inside a Container bugs out since v3.60 #6093

@Antriel

Description

@Antriel

Version

v3.60.0-beta.6

Description

ctx.save is not a function in GraphicsCanvasRenderer.

Happens in Canvas mode when Graphics object is inside a container. Worked in v3.55.

Example Test Code

var config = {
    type: Phaser.CANVAS,
    scene: {
        create: create
    }
};

var game = new Phaser.Game(config);

function create () {
    var graphics = this.add.graphics();
    graphics.strokeCircle(0, 0, 60);
    var container = this.add.container(0, 0, [ graphics ]);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions