Added alpha setting to getContext.

This commit is contained in:
photonstorm 2014-11-29 19:40:26 +00:00
parent af4e3b1cb5
commit d5dfa464c0

View file

@ -51,7 +51,7 @@ Phaser.BitmapData = function (game, key, width, height) {
* @property {CanvasRenderingContext2D} context - The 2d context of the canvas.
* @default
*/
this.context = this.canvas.getContext('2d');
this.context = this.canvas.getContext('2d', { alpha: true });
/**
* @property {CanvasRenderingContext2D} ctx - A reference to BitmapData.context.