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

Method unbindTextures

core/src/processing/opengl/PShader.java:874–888  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

872
873
874 protected void unbindTextures() {
875 if (textures != null && texUnits != null) {
876 for (int loc: textures.keySet()) {
877 Texture tex = textures.get(loc);
878 Integer unit = texUnits.get(loc);
879 if (unit != null) {
880 pgl.activeTexture(PGL.TEXTURE0 + unit);
881 tex.unbind();
882 } else {
883 throw new RuntimeException("Cannot find unit for texture " + tex);
884 }
885 }
886 pgl.activeTexture(PGL.TEXTURE0);
887 }
888 }
889
890
891 public void init() {

Callers 1

unbindMethod · 0.95

Calls 3

unbindMethod · 0.95
activeTextureMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected