diff --git a/packages/core/src/filters/FilterSystem.js b/packages/core/src/filters/FilterSystem.js index 5375968..3da98eb 100644 --- a/packages/core/src/filters/FilterSystem.js +++ b/packages/core/src/filters/FilterSystem.js @@ -398,13 +398,11 @@ /** * Destroys this Filter System. - * - * @param {boolean} [contextLost=false] context was lost, do not free shaders - * */ - destroy(contextLost = false) + destroy() { - this.texturePool.clear(!contextLost); + // Those textures has to be destroyed by RenderTextureSystem or FramebufferSystem + this.texturePool.clear(false); } /**