Add an easy way to clear RenderTexture (#3647)
* Add a easy way to clear RenderTexture

In current PIXI, clear a RenderTexture is complex : 
```
renderer.bindRenderTexture(myRenderTexture);
renderer.clear();
// restore the previous renderTexture
renderer.bindRenderTexture();
```
And bind renderTexture is a high-cost operation . We shouldn't call it for cleaning render texture.

So I  add this method.

relatived : https://github.com/pixijs/pixi.js/issues/3595

* Add `return this`
1 parent 9375110 commit bed84b9ff04cf98c536401d36841d447b74917fe
@finscn finscn authored on 3 Feb 2017
Matt Karl committed on 3 Feb 2017
Showing 1 changed file
View
src/core/renderers/webgl/WebGLRenderer.js