diff --git a/packages/core/src/renderTexture/RenderTexturePool.js b/packages/core/src/renderTexture/RenderTexturePool.js index 22e143b..bf3f464 100644 --- a/packages/core/src/renderTexture/RenderTexturePool.js +++ b/packages/core/src/renderTexture/RenderTexturePool.js @@ -93,7 +93,7 @@ { const rt = this.renderer.renderTexture.current; - const filterTexture = this.getOptimalFilterTexture(rt.width, rt.height, resolution || rt.baseTexture.resolution); + const filterTexture = this.getOptimalTexture(rt.width, rt.height, resolution || rt.baseTexture.resolution); filterTexture.filterFrame = rt.filterFrame; @@ -101,8 +101,7 @@ } /** - * Frees a render texture back into the pool. - * + * Place a render texture back into the pool. * @param {PIXI.RenderTexture} renderTexture - The renderTexture to free */ returnTexture(renderTexture) @@ -114,6 +113,15 @@ } /** + * Alias for returnTexture, to be compliant with FilterSystem interface + * @param {PIXI.RenderTexture} renderTexture - The renderTexture to free + */ + returnFilterTexture(renderTexture) + { + this.returnTexture(renderTexture); + } + + /** * Clears the pool * * @member {boolean} [destroyTextures=true] destroy all stored textures