Skip to content

Commit d5dfa46

Browse files
committed
Added alpha setting to getContext.
1 parent af4e3b1 commit d5dfa46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gameobjects/BitmapData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Phaser.BitmapData = function (game, key, width, height) {
5151
* @property {CanvasRenderingContext2D} context - The 2d context of the canvas.
5252
* @default
5353
*/
54-
this.context = this.canvas.getContext('2d');
54+
this.context = this.canvas.getContext('2d', { alpha: true });
5555

5656
/**
5757
* @property {CanvasRenderingContext2D} ctx - A reference to BitmapData.context.

0 commit comments

Comments
 (0)