* Ensures that the framebuffer is ready to be read by other framebuffers. * * @private
()
| 833 | * @private |
| 834 | */ |
| 835 | _beforeEnd() { |
| 836 | if (this.antialias) { |
| 837 | this.dirty = { colorTexture: true, depthTexture: true }; |
| 838 | } |
| 839 | // TODO |
| 840 | // This should work but flushes more often than we need to. Ideally we only do this |
| 841 | // right before the fbo is read as a texture. |
| 842 | if (this.renderer.flushDraw) { |
| 843 | this.renderer.flushDraw(); |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | /** |
| 848 | * Stops drawing shapes to the framebuffer. |