mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 05:58:30 +00:00
Added alpha setting to getContext.
This commit is contained in:
parent
af4e3b1cb5
commit
d5dfa464c0
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue