From f9123f9e059956c29e5b95cd826aa931ead03837 Mon Sep 17 00:00:00 2001 From: Mr Speaker Date: Thu, 12 Jun 2014 22:00:18 -0400 Subject: [PATCH] Make background:'transparent' work like canvas renderer --- src/render/RenderPixi.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/render/RenderPixi.js b/src/render/RenderPixi.js index 59a9bbe..2e546ff 100644 --- a/src/render/RenderPixi.js +++ b/src/render/RenderPixi.js @@ -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();