Fixed issue with transparent webGL renderer in FF

This commit is contained in:
Mat Groves 2014-01-21 22:35:10 +00:00
parent b0f8c931b0
commit d8563505f5
3 changed files with 9 additions and 3 deletions

View file

@ -5376,7 +5376,10 @@ PIXI.WebGLRenderer.prototype.render = function(stage)
// make sure we are bound to the main frame buffer
gl.bindFramebuffer(gl.FRAMEBUFFER, null);
gl.clearColor(stage.backgroundColorSplit[0],stage.backgroundColorSplit[1],stage.backgroundColorSplit[2], !this.transparent);
if(this.transparent)gl.clearColor(0, 0, 0, 0);
else gl.clearColor(stage.backgroundColorSplit[0],stage.backgroundColorSplit[1],stage.backgroundColorSplit[2], 1);
gl.clear(gl.COLOR_BUFFER_BIT);
// this.projection.x = this.width/2;

File diff suppressed because one or more lines are too long

View file

@ -162,7 +162,10 @@ PIXI.WebGLRenderer.prototype.render = function(stage)
// make sure we are bound to the main frame buffer
gl.bindFramebuffer(gl.FRAMEBUFFER, null);
gl.clearColor(stage.backgroundColorSplit[0],stage.backgroundColorSplit[1],stage.backgroundColorSplit[2], !this.transparent);
if(this.transparent)gl.clearColor(0, 0, 0, 0);
else gl.clearColor(stage.backgroundColorSplit[0],stage.backgroundColorSplit[1],stage.backgroundColorSplit[2], 1);
gl.clear(gl.COLOR_BUFFER_BIT);
// this.projection.x = this.width/2;