mirror of
https://github.com/liabru/matter-js.git
synced 2024-11-27 09:50:52 -05:00
Merge remote-tracking branch 'origin/pr/33'
This commit is contained in:
commit
c6a9414513
1 changed files with 3 additions and 2 deletions
|
@ -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
|
// 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.canvas = render.context.view;
|
||||||
render.stage = new PIXI.Stage();
|
render.stage = new PIXI.Stage();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue