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

Method unbindFrontTexture

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

Source from the content-addressed store, hash-verified

610
611
612 protected void unbindFrontTexture() {
613 if (textureIsBound(TEXTURE_2D, glColorTex.get(frontTex))) {
614 // We don't want to unbind another texture
615 // that might be bound instead of this one.
616 if (!texturingIsEnabled(TEXTURE_2D)) {
617 enableTexturing(TEXTURE_2D);
618 bindTexture(TEXTURE_2D, 0);
619 disableTexturing(TEXTURE_2D);
620 } else {
621 bindTexture(TEXTURE_2D, 0);
622 }
623 }
624 }
625
626
627 protected void syncBackTexture() {

Callers 1

unbindTypedMethod · 0.45

Calls 6

textureIsBoundMethod · 0.95
texturingIsEnabledMethod · 0.95
enableTexturingMethod · 0.95
bindTextureMethod · 0.95
disableTexturingMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected