Skip to content

Commit

Permalink
Fix: destroy independency (#316)
Browse files Browse the repository at this point in the history
* fix: order independency
  • Loading branch information
zhuxudong authored Jun 2, 2021
1 parent e2247df commit c5c1c57
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/framebuffer-picker/src/FramebufferPicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ export class FramebufferPicker extends Script {
}

onDestroy() {
//@ts-ignore
this.camera._renderPipeline.removeRenderPass(this.colorRenderPass);
if (!this.camera.destroyed) {
//@ts-ignore
this.camera._renderPipeline.removeRenderPass(this.colorRenderPass);
}
}
}

0 comments on commit c5c1c57

Please sign in to comment.