| 3743 | } |
| 3744 | |
| 3745 | deleteFramebufferResources(framebuffer) { |
| 3746 | this.flushDraw(); |
| 3747 | if (framebuffer.colorTexture && framebuffer.colorTexture.destroy) { |
| 3748 | const tex = framebuffer.colorTexture; |
| 3749 | this._postSubmitCallbacks.push(() => tex.destroy()); |
| 3750 | } |
| 3751 | if (framebuffer.depthTexture && framebuffer.depthTexture.destroy) { |
| 3752 | const tex = framebuffer.depthTexture; |
| 3753 | this._postSubmitCallbacks.push(() => tex.destroy()); |
| 3754 | } |
| 3755 | if (framebuffer.aaDepthTexture && framebuffer.aaDepthTexture.destroy) { |
| 3756 | const tex = framebuffer.aaDepthTexture; |
| 3757 | this._postSubmitCallbacks.push(() => tex.destroy()); |
| 3758 | } |
| 3759 | } |
| 3760 | |
| 3761 | getFramebufferToBind(framebuffer) { |
| 3762 | } |