mirror of
https://github.com/liabru/matter-js.git
synced 2024-12-24 13:29:01 -05:00
pass width and height options to Pixi webGL renderer
This commit is contained in:
parent
d6cbd074f9
commit
a9278fc6c2
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ var RenderPixi = {};
|
|||
var render = Common.extend(defaults, options);
|
||||
|
||||
// init pixi
|
||||
render.context = new PIXI.WebGLRenderer(800, 600, render.canvas, false, true);
|
||||
render.context = new PIXI.WebGLRenderer(render.options.width, render.options.height, render.canvas, false, true);
|
||||
render.canvas = render.context.view;
|
||||
render.stage = new PIXI.Stage();
|
||||
|
||||
|
|
Loading…
Reference in a new issue