Pass `currentState` to filter.apply() (#3421)
* Pass ```currentState``` to filter.apply()

see https://github.com/pixijs/pixi.js/issues/3317 

If  pass ```currentState``` to filter.apply() , users could get more informations  (e.g. get current sprite by ```currentSprite = currentState.target```).
It's very useful when users create custom filters.

And the ```currentState``` is the last argument , and pass it won't break any filter already existed.

So I think this PR is safe and useful.

* Update annotation about currentState in Filter.js

* Use eslint-disable-line

* Update FilterManager.js

* Update Filter.js
1 parent a84ce13 commit a463e61ffb8b406ab9916cc4e8d932015d665599
@finscn finscn authored on 20 Feb 2017
Mat Groves committed on 20 Feb 2017
Showing 2 changed files
View
src/core/renderers/webgl/filters/Filter.js
View
src/core/renderers/webgl/managers/FilterManager.js