Merge pull request #161 from Hyzhak/patch-1
Fix update textures in handleContextRestored
This commit is contained in:
commit
9ab5a2155b
1 changed files with 4 additions and 2 deletions
|
@ -325,9 +325,11 @@ PIXI.WebGLRenderer.prototype.handleContextRestored = function(event)
|
|||
|
||||
this.initShaders();
|
||||
|
||||
for (var i=0; i < PIXI.TextureCache.length; i++)
|
||||
for(var key in PIXI.TextureCache)
|
||||
{
|
||||
this.updateTexture(PIXI.TextureCache[i]);
|
||||
var texture = PIXI.TextureCache[key].baseTexture;
|
||||
texture._glTexture = null;
|
||||
PIXI.WebGLRenderer.updateTexture(texture);
|
||||
};
|
||||
|
||||
for (var i=0; i < this.batchs.length; i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue