Skip to content

Commit

Permalink
fixing issue #4
Browse files Browse the repository at this point in the history
  • Loading branch information
azeem committed Oct 22, 2013
1 parent 30c6faf commit adf2a46
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/EffectList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/trans/FadeOut.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
});
Expand Down
1 change: 1 addition & 0 deletions src/webgl/FrameBufferManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit adf2a46

Please sign in to comment.