phaser/src/pixi
nextht 6f5d4b93b8 Fix mask combine filter bug
In the demo (code below), i create a group with a rect mask, and create a sprite as child with a blurXY filter, then nothing is displayed. 
So i hack WebGLFilterManager's pushFilter and popFilter method, in pushFilter method i create a new stencilManager instance and cache the old one, in popFilter i destroy the new stencilManager and restore the old one, then this workaround works rightly as i expect.

I think this is bug for PIXI, so i hope @GoodBoyDigital and @photonstorm can help me to check whether this fixing is right or not, thanks.
 
		var game = new Phaser.Game(800, 600, Phaser.WEBGL, 'phaser-example', { preload: preload, create: create });

		function preload() {

			game.load.image('phaser', 'assets/sprites/phaser2.png');
			game.load.script('filterX', '../filters/BlurX.js');
			game.load.script('filterY', '../filters/BlurY.js');

		}

		function create() {

			var logo = game.add.sprite(game.world.centerX, game.world.centerY, 'phaser');
			logo.anchor.setTo(0.5, 0.5);

			var blurX = game.add.filter('BlurX');
			var blurY = game.add.filter('BlurY');

			logo.filters = [blurX, blurY];
			var group = game.add.group();
				group.addChild(logo);
				group.mask = game.add.graphics();
				group.mask.beginFill(0xff);
				group.mask.drawRect(0,0,500,500);
		}
2015-06-08 20:43:20 +08:00
..
display Heavily tweaked tint texture handling. Can now be set by a texture and cached internally. 2015-05-08 04:13:34 +01:00
extras Close to getting WebGL Tiling Sprites back again - animations now work too, but the placement isn't quite right. 2015-04-22 01:36:12 +01:00
filters Removing Pixi files no longer used in this build of Phaser. 2015-02-17 15:46:52 +00:00
primitives Merge pull request #1833 from danxexe/fix-drawcircle-docstring 2015-06-04 04:23:45 +01:00
renderers Fix mask combine filter bug 2015-06-08 20:43:20 +08:00
text Removed un-needed Pixi file. 2015-06-03 05:28:24 +01:00
textures Tidying up docs and formatting. 2015-05-08 04:12:07 +01:00
utils Added guards around context.getImageData calls in BitmapData, Text and Canvas Tinting classes to avoid crashing restricted browsers like Epic Browser. Please understand that several Phaser features won't work correctly with this browser (thanks @Erik3000 #1714) 2015-04-02 14:47:44 +01:00
Intro.js RenderTexture now displays correctly in Canvas games. 2013-12-23 04:20:09 +00:00
Outro.js Updated build files with patched Pixi UMD statement. 2014-07-11 11:53:44 +01:00
Pixi.js Updated Pixi version. 2015-03-23 08:13:59 +00:00