WebGL Render Bug Fix
This commit is contained in:
parent
953a19ff5c
commit
c6e6f7458e
36 changed files with 729 additions and 340 deletions
|
@ -191,7 +191,7 @@ PIXI.WebGLRenderer = function(width, height, view, transparent)
|
|||
{
|
||||
PIXI.gl = this.gl = this.view.getContext("experimental-webgl", {
|
||||
alpha: this.transparent,
|
||||
antialias:false, // SPEED UP??
|
||||
antialias:true, // SPEED UP??
|
||||
premultipliedAlpha:false
|
||||
});
|
||||
}
|
||||
|
@ -446,9 +446,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