Render Texture bug fix
Fixed bug with rendering single sprite Example updated
This commit is contained in:
parent
34b6352a57
commit
43b289aeeb
20 changed files with 393 additions and 321 deletions
|
@ -177,6 +177,8 @@ PIXI.WebGLRenderGroup.prototype.setRenderable = function(displayObject)
|
|||
|
||||
PIXI.WebGLRenderGroup.prototype.render = function(projectionMatrix)
|
||||
{
|
||||
//PIXI.WebGLRenderer.updateTextures();
|
||||
|
||||
var gl = this.gl;
|
||||
|
||||
// set the flipped matrix..
|
||||
|
@ -215,6 +217,8 @@ PIXI.WebGLRenderGroup.prototype.render = function(projectionMatrix)
|
|||
|
||||
PIXI.WebGLRenderGroup.prototype.renderSpecific = function(displayObject, projectionMatrix)
|
||||
{
|
||||
//PIXI.WebGLRenderer.updateTextures();
|
||||
|
||||
var gl = this.gl;
|
||||
this.checkVisibility(displayObject, displayObject.visible);
|
||||
gl.uniformMatrix4fv(PIXI.shaderProgram.mvMatrixUniform, false, projectionMatrix);
|
||||
|
@ -683,7 +687,9 @@ PIXI.WebGLRenderGroup.prototype.getNextRenderable = function(displayObject)
|
|||
while(nextSprite.childIndex == nextSprite.parent.children.length-1)
|
||||
{
|
||||
nextSprite = nextSprite.parent;
|
||||
if(nextSprite == this.root)//displayObject.stage)
|
||||
//console.log(">" + nextSprite);
|
||||
// console.log(">-" + this.root);
|
||||
if(nextSprite == this.root || !nextSprite.parent)//displayObject.stage)
|
||||
{
|
||||
nextSprite = null
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue