0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-23 09:26:51 -05:00

Merge remote-tracking branch 'origin/pr/33'

This commit is contained in:
liabru 2014-06-13 10:43:01 +01:00
commit c6a9414513

View file

@ -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();