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

Method unbind

core/src/processing/opengl/Texture.java:687–700  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

685
686
687 public void unbind() {
688 if (pgl.textureIsBound(glTarget, glName)) {
689 // We don't want to unbind another texture
690 // that might be bound instead of this one.
691 if (!pgl.texturingIsEnabled(glTarget)) {
692 pgl.enableTexturing(glTarget);
693 pgl.bindTexture(glTarget, 0);
694 pgl.disableTexturing(glTarget);
695 } else {
696 pgl.bindTexture(glTarget, 0);
697 }
698 }
699 bound = false;
700 }
701
702
703 public boolean bound() {

Callers 4

unbindTexturesMethod · 0.95
usingMipmapsMethod · 0.95
usingRepeatMethod · 0.95
renderPolysMethod · 0.95

Calls 5

textureIsBoundMethod · 0.80
texturingIsEnabledMethod · 0.80
bindTextureMethod · 0.80
enableTexturingMethod · 0.45
disableTexturingMethod · 0.45

Tested by

no test coverage detected