* Ensures that the framebuffer is ready to be drawn to * * @private
()
| 817 | * @private |
| 818 | */ |
| 819 | _beforeBegin() { |
| 820 | this.renderer.bindFramebuffer(this); |
| 821 | this.renderer.viewport( |
| 822 | this.width * this.density, |
| 823 | this.height * this.density |
| 824 | ); |
| 825 | if (this.renderer.flushDraw) { |
| 826 | this.renderer.flushDraw(); |
| 827 | } |
| 828 | } |
| 829 | |
| 830 | /** |
| 831 | * Ensures that the framebuffer is ready to be read by other framebuffers. |
no test coverage detected