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

Method unbindFrontTexture

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

Source from the content-addressed store, hash-verified

569
570
571 protected void unbindFrontTexture() {
572 if (textureIsBound(TEXTURE_2D, glColorTex.get(frontTex))) {
573 // We don't want to unbind another texture
574 // that might be bound instead of this one.
575 if (!texturingIsEnabled(TEXTURE_2D)) {
576 enableTexturing(TEXTURE_2D);
577 bindTexture(TEXTURE_2D, 0);
578 disableTexturing(TEXTURE_2D);
579 } else {
580 bindTexture(TEXTURE_2D, 0);
581 }
582 }
583 }
584
585
586 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