diff --git a/bin/pixi.dev.js b/bin/pixi.dev.js index 48aa302..71b28d6 100644 --- a/bin/pixi.dev.js +++ b/bin/pixi.dev.js @@ -1452,8 +1452,8 @@ PIXI.DisplayObjectContainer.prototype._renderWebGL = function(renderSession) { - if(this.visible === false || this.alpha === 0)return; - + if(!this.visible || this.alpha <= 0)return; + var i,j; if(this._mask || this._filters) @@ -1775,7 +1775,7 @@ PIXI.Sprite.prototype._renderWebGL = function(renderSession) { // if the sprite is not visible or the alpha is 0 then no need to render this element - if(this.visible === false || this.alpha === 0)return; + if(!this.visible || this.alpha <= 0)return; var i,j; @@ -2011,7 +2011,7 @@ PIXI.SpriteBatch.prototype._renderWebGL = function(renderSession) { - if(!this.visible)return; + if(!this.visible || this.alpha <= 0 || !this.children.length)return; if(!this.ready)this.initWebGL( renderSession.gl ); diff --git a/bin/pixi.dev.js b/bin/pixi.dev.js index 48aa302..71b28d6 100644 --- a/bin/pixi.dev.js +++ b/bin/pixi.dev.js @@ -1452,8 +1452,8 @@ PIXI.DisplayObjectContainer.prototype._renderWebGL = function(renderSession) { - if(this.visible === false || this.alpha === 0)return; - + if(!this.visible || this.alpha <= 0)return; + var i,j; if(this._mask || this._filters) @@ -1775,7 +1775,7 @@ PIXI.Sprite.prototype._renderWebGL = function(renderSession) { // if the sprite is not visible or the alpha is 0 then no need to render this element - if(this.visible === false || this.alpha === 0)return; + if(!this.visible || this.alpha <= 0)return; var i,j; @@ -2011,7 +2011,7 @@ PIXI.SpriteBatch.prototype._renderWebGL = function(renderSession) { - if(!this.visible)return; + if(!this.visible || this.alpha <= 0 || !this.children.length)return; if(!this.ready)this.initWebGL( renderSession.gl ); diff --git a/src/pixi/display/DisplayObjectContainer.js b/src/pixi/display/DisplayObjectContainer.js index 45a8b55..5147b8f 100644 --- a/src/pixi/display/DisplayObjectContainer.js +++ b/src/pixi/display/DisplayObjectContainer.js @@ -283,8 +283,8 @@ PIXI.DisplayObjectContainer.prototype._renderWebGL = function(renderSession) { - if(this.visible === false || this.alpha === 0)return; - + if(!this.visible || this.alpha <= 0)return; + var i,j; if(this._mask || this._filters) diff --git a/bin/pixi.dev.js b/bin/pixi.dev.js index 48aa302..71b28d6 100644 --- a/bin/pixi.dev.js +++ b/bin/pixi.dev.js @@ -1452,8 +1452,8 @@ PIXI.DisplayObjectContainer.prototype._renderWebGL = function(renderSession) { - if(this.visible === false || this.alpha === 0)return; - + if(!this.visible || this.alpha <= 0)return; + var i,j; if(this._mask || this._filters) @@ -1775,7 +1775,7 @@ PIXI.Sprite.prototype._renderWebGL = function(renderSession) { // if the sprite is not visible or the alpha is 0 then no need to render this element - if(this.visible === false || this.alpha === 0)return; + if(!this.visible || this.alpha <= 0)return; var i,j; @@ -2011,7 +2011,7 @@ PIXI.SpriteBatch.prototype._renderWebGL = function(renderSession) { - if(!this.visible)return; + if(!this.visible || this.alpha <= 0 || !this.children.length)return; if(!this.ready)this.initWebGL( renderSession.gl ); diff --git a/src/pixi/display/DisplayObjectContainer.js b/src/pixi/display/DisplayObjectContainer.js index 45a8b55..5147b8f 100644 --- a/src/pixi/display/DisplayObjectContainer.js +++ b/src/pixi/display/DisplayObjectContainer.js @@ -283,8 +283,8 @@ PIXI.DisplayObjectContainer.prototype._renderWebGL = function(renderSession) { - if(this.visible === false || this.alpha === 0)return; - + if(!this.visible || this.alpha <= 0)return; + var i,j; if(this._mask || this._filters) diff --git a/src/pixi/display/Sprite.js b/src/pixi/display/Sprite.js index 0690cf3..aee299a 100644 --- a/src/pixi/display/Sprite.js +++ b/src/pixi/display/Sprite.js @@ -256,7 +256,7 @@ PIXI.Sprite.prototype._renderWebGL = function(renderSession) { // if the sprite is not visible or the alpha is 0 then no need to render this element - if(this.visible === false || this.alpha === 0)return; + if(!this.visible || this.alpha <= 0)return; var i,j; diff --git a/bin/pixi.dev.js b/bin/pixi.dev.js index 48aa302..71b28d6 100644 --- a/bin/pixi.dev.js +++ b/bin/pixi.dev.js @@ -1452,8 +1452,8 @@ PIXI.DisplayObjectContainer.prototype._renderWebGL = function(renderSession) { - if(this.visible === false || this.alpha === 0)return; - + if(!this.visible || this.alpha <= 0)return; + var i,j; if(this._mask || this._filters) @@ -1775,7 +1775,7 @@ PIXI.Sprite.prototype._renderWebGL = function(renderSession) { // if the sprite is not visible or the alpha is 0 then no need to render this element - if(this.visible === false || this.alpha === 0)return; + if(!this.visible || this.alpha <= 0)return; var i,j; @@ -2011,7 +2011,7 @@ PIXI.SpriteBatch.prototype._renderWebGL = function(renderSession) { - if(!this.visible)return; + if(!this.visible || this.alpha <= 0 || !this.children.length)return; if(!this.ready)this.initWebGL( renderSession.gl ); diff --git a/src/pixi/display/DisplayObjectContainer.js b/src/pixi/display/DisplayObjectContainer.js index 45a8b55..5147b8f 100644 --- a/src/pixi/display/DisplayObjectContainer.js +++ b/src/pixi/display/DisplayObjectContainer.js @@ -283,8 +283,8 @@ PIXI.DisplayObjectContainer.prototype._renderWebGL = function(renderSession) { - if(this.visible === false || this.alpha === 0)return; - + if(!this.visible || this.alpha <= 0)return; + var i,j; if(this._mask || this._filters) diff --git a/src/pixi/display/Sprite.js b/src/pixi/display/Sprite.js index 0690cf3..aee299a 100644 --- a/src/pixi/display/Sprite.js +++ b/src/pixi/display/Sprite.js @@ -256,7 +256,7 @@ PIXI.Sprite.prototype._renderWebGL = function(renderSession) { // if the sprite is not visible or the alpha is 0 then no need to render this element - if(this.visible === false || this.alpha === 0)return; + if(!this.visible || this.alpha <= 0)return; var i,j; diff --git a/src/pixi/display/SpriteBatch.js b/src/pixi/display/SpriteBatch.js index 36cd710..fb099af 100644 --- a/src/pixi/display/SpriteBatch.js +++ b/src/pixi/display/SpriteBatch.js @@ -31,7 +31,7 @@ PIXI.SpriteBatch.prototype._renderWebGL = function(renderSession) { - if(!this.visible)return; + if(!this.visible || this.alpha <= 0 || !this.children.length)return; if(!this.ready)this.initWebGL( renderSession.gl );