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

Method unbindTextures

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

Source from the content-addressed store, hash-verified

881
882
883 protected void unbindTextures() {
884 if (textures != null && texUnits != null) {
885 for (int loc: textures.keySet()) {
886 Texture tex = textures.get(loc);
887 Integer unit = texUnits.get(loc);
888 if (unit != null) {
889 pgl.activeTexture(PGL.TEXTURE0 + unit);
890 tex.unbind();
891 } else {
892 throw new RuntimeException("Cannot find unit for texture " + tex);
893 }
894 }
895 pgl.activeTexture(PGL.TEXTURE0);
896 }
897 }
898
899
900 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