Fixed issue with transparent webGL renderer in FF
This commit is contained in:
parent
b0f8c931b0
commit
d8563505f5
3 changed files with 9 additions and 3 deletions
|
@ -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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue