From adf2a46dd9f9b5854e963ae605de0c4d7f21a167 Mon Sep 17 00:00:00 2001 From: azeem Date: Tue, 22 Oct 2013 11:37:41 +0530 Subject: [PATCH] fixing issue #4 --- src/EffectList.js | 2 +- src/trans/FadeOut.js | 2 +- src/webgl/FrameBufferManager.js | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/EffectList.js b/src/EffectList.js index 3d72e97..fb5e6bc 100644 --- a/src/EffectList.js +++ b/src/EffectList.js @@ -159,7 +159,7 @@ Webvs.EffectList = Webvs.defineClass(EffectList, Webvs.Component, { // destory all the sub-components for(i = 0;i < this.components.length;i++) { - this.components[i].destroyComponent(); + this.components[i].destroy(); } // destroy the framebuffer manager diff --git a/src/trans/FadeOut.js b/src/trans/FadeOut.js index 5db280e..7b29020 100644 --- a/src/trans/FadeOut.js +++ b/src/trans/FadeOut.js @@ -60,7 +60,7 @@ Webvs.FadeOut = Webvs.defineClass(FadeOut, Webvs.Component, { * @memberof Webvs.FadeOut */ destroy: function() { - FadeOut.super.destroyComponent.call(this); + FadeOut.super.destroy.call(this); this.program.cleanup(); } }); diff --git a/src/webgl/FrameBufferManager.js b/src/webgl/FrameBufferManager.js index 4f9d06b..f27c8d2 100644 --- a/src/webgl/FrameBufferManager.js +++ b/src/webgl/FrameBufferManager.js @@ -117,6 +117,7 @@ Webvs.FrameBufferManager = Webvs.defineClass(FrameBufferManager, Object, { * @memberof Webvs.FrameBufferManager */ destroy: function() { + var gl = this.gl; for(var i = 0;i < this.texCount;i++) { gl.deleteRenderbuffer(this.frameAttachments[i].renderbuffer); gl.deleteTexture(this.frameAttachments[i].texture);