Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/33'
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Jun 13, 2014
2 parents 4067108 + f9123f9 commit c6a9414
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/render/RenderPixi.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ var RenderPixi = {};
}
};

var render = Common.extend(defaults, options);
var render = Common.extend(defaults, options),
transparent = !render.options.wireframes && render.options.background === 'transparent';

// init pixi
render.context = new PIXI.WebGLRenderer(render.options.width, render.options.height, render.canvas, false, true);
render.context = new PIXI.WebGLRenderer(render.options.width, render.options.height, render.canvas, transparent, true);
render.canvas = render.context.view;
render.stage = new PIXI.Stage();

Expand Down

0 comments on commit c6a9414

Please sign in to comment.