Fixed sprite batch issue

This commit is contained in:
Mat Groves 2014-02-08 23:45:03 +00:00
parent 312976e2aa
commit e99a42dd26
3 changed files with 5 additions and 5 deletions

View file

@ -6879,9 +6879,9 @@ PIXI.WebGLFastSpriteBatch.prototype.renderSprite = function(sprite)
// TODO trim??
if(sprite.texture.baseTexture !== this.currentBaseTexture)
{
this.currentBaseTexture = sprite.texture.baseTexture;
this.flush();
this.currentBaseTexture = sprite.texture.baseTexture;
if(!sprite.texture._uvs)return;
}

File diff suppressed because one or more lines are too long

View file

@ -128,9 +128,9 @@ PIXI.WebGLFastSpriteBatch.prototype.renderSprite = function(sprite)
// TODO trim??
if(sprite.texture.baseTexture !== this.currentBaseTexture)
{
this.currentBaseTexture = sprite.texture.baseTexture;
this.flush();
this.currentBaseTexture = sprite.texture.baseTexture;
if(!sprite.texture._uvs)return;
}