Merge pull request #514 from brianblakely/patch-1

[CanvasRenderer] Native "alpha" Context Attribute
This commit is contained in:
Mat Groves 2014-01-21 13:43:27 -08:00
commit 99dd5b8db2

View file

@ -19,7 +19,7 @@ PIXI.CanvasRenderer = function(width, height, view, transparent)
this.type = PIXI.CANVAS_RENDERER; this.type = PIXI.CANVAS_RENDERER;
this.transparent = transparent; this.transparent = !!transparent;
if(!PIXI.blendModesCanvas) if(!PIXI.blendModesCanvas)
{ {
@ -73,7 +73,7 @@ PIXI.CanvasRenderer = function(width, height, view, transparent)
* @property context * @property context
* @type Canvas 2d Context * @type Canvas 2d Context
*/ */
this.context = this.view.getContext( "2d" ); this.context = this.view.getContext( "2d" , { alpha: this.transparent } );
//some filter variables //some filter variables
this.smoothProperty = null; this.smoothProperty = null;