MCPcopy Index your code
hub / github.com/benfry/processing4 / syncBackTexture

Method syncBackTexture

core/src/processing/opengl/PGL.java:627–640  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

625
626
627 protected void syncBackTexture() {
628 if (usingFrontTex) needSepFrontTex = true;
629 if (1 < numSamples) {
630 bindFramebufferImpl(READ_FRAMEBUFFER, glMultiFbo.get(0));
631 bindFramebufferImpl(DRAW_FRAMEBUFFER, glColorFbo.get(0));
632 int mask = COLOR_BUFFER_BIT;
633 if (graphics.getHint(PConstants.ENABLE_BUFFER_READING)) {
634 mask |= DEPTH_BUFFER_BIT | STENCIL_BUFFER_BIT;
635 }
636 blitFramebuffer(0, 0, fboWidth, fboHeight,
637 0, 0, fboWidth, fboHeight,
638 mask, NEAREST);
639 }
640 }
641
642
643 abstract protected float getPixelScale();

Callers 3

endRenderMethod · 0.95
beginPixelsOpMethod · 0.80
loadTextureMethod · 0.80

Calls 4

bindFramebufferImplMethod · 0.95
blitFramebufferMethod · 0.95
getHintMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected