MCPcopy
hub / github.com/processing/p5.js / _beforeEnd

Method _beforeEnd

src/webgl/p5.Framebuffer.js:835–845  ·  view source on GitHub ↗

* Ensures that the framebuffer is ready to be read by other framebuffers. * * @private

()

Source from the content-addressed store, hash-verified

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.

Callers 2

endMethod · 0.95
beginMethod · 0.80

Calls 1

flushDrawMethod · 0.80

Tested by

no test coverage detected