MCPcopy Index your code
hub / github.com/processing/processing / syncBackTexture

Method syncBackTexture

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

Source from the content-addressed store, hash-verified

584
585
586 protected void syncBackTexture() {
587 if (usingFrontTex) needSepFrontTex = true;
588 if (1 < numSamples) {
589 bindFramebufferImpl(READ_FRAMEBUFFER, glMultiFbo.get(0));
590 bindFramebufferImpl(DRAW_FRAMEBUFFER, glColorFbo.get(0));
591 int mask = COLOR_BUFFER_BIT;
592 if (graphics.getHint(PConstants.ENABLE_BUFFER_READING)) {
593 mask |= DEPTH_BUFFER_BIT | STENCIL_BUFFER_BIT;
594 }
595 blitFramebuffer(0, 0, fboWidth, fboHeight,
596 0, 0, fboWidth, fboHeight,
597 mask, NEAREST);
598 }
599 }
600
601
602 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