@@ -114,9 +114,9 @@ PIXI.WebGLFilterManager.prototype.pushFilter = function(filterBlock)
114114
115115 // update projection
116116 // now restore the regular shader..
117- this . renderSession . shaderManager . setShader ( this . defaultShader ) ;
118- gl . uniform2f ( this . defaultShader . projectionVector , filterArea . width / 2 , - filterArea . height / 2 ) ;
119- gl . uniform2f ( this . defaultShader . offsetVector , - filterArea . x , - filterArea . y ) ;
117+ // this.renderSession.shaderManager.setShader(this.defaultShader);
118+ // gl.uniform2f(this.defaultShader.projectionVector, filterArea.width/2, -filterArea.height/2);
119+ // gl.uniform2f(this.defaultShader.offsetVector, -filterArea.x, -filterArea.y);
120120
121121 gl . colorMask ( true , true , true , true ) ;
122122 gl . clearColor ( 0 , 0 , 0 , 0 ) ;
@@ -299,10 +299,10 @@ PIXI.WebGLFilterManager.prototype.popFilter = function()
299299 // apply!
300300 this . applyFilterPass ( filter , filterArea , sizeX , sizeY ) ;
301301
302- // now restore the regular shader..
303- this . renderSession . shaderManager . setShader ( this . defaultShader ) ;
304- gl . uniform2f ( this . defaultShader . projectionVector , sizeX / 2 , - sizeY / 2 ) ;
305- gl . uniform2f ( this . defaultShader . offsetVector , - offsetX , - offsetY ) ;
302+ // now restore the regular shader.. should happen automatically now..
303+ // this.renderSession.shaderManager.setShader(this.defaultShader);
304+ // gl.uniform2f(this.defaultShader.projectionVector, sizeX/2, -sizeY/2);
305+ // gl.uniform2f(this.defaultShader.offsetVector, -offsetX, -offsetY);
306306
307307 // return the texture to the pool
308308 this . texturePool . push ( texture ) ;
0 commit comments