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

Method validate

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

Source from the content-addressed store, hash-verified

940
941
942 protected void validate() {
943 pgl.getProgramiv(glProgram, PGL.LINK_STATUS, intBuffer);
944 boolean linked = intBuffer.get(0) != 0;
945 if (!linked) {
946 PGraphics.showException("Cannot link shader program:\n" +
947 pgl.getProgramInfoLog(glProgram));
948 }
949
950 pgl.validateProgram(glProgram);
951 pgl.getProgramiv(glProgram, PGL.VALIDATE_STATUS, intBuffer);
952 boolean validated = intBuffer.get(0) != 0;
953 if (!validated) {
954 PGraphics.showException("Cannot validate shader program:\n" +
955 pgl.getProgramInfoLog(glProgram));
956 }
957 }
958
959
960 protected boolean contextIsOutdated() {

Callers 5

initMethod · 0.95
makeFrameMethod · 0.45
rebuildMethod · 0.45
showImportSuggestionMethod · 0.45
buildAndUpdateTreeMethod · 0.45

Calls 5

showExceptionMethod · 0.95
getMethod · 0.65
getProgramivMethod · 0.45
getProgramInfoLogMethod · 0.45
validateProgramMethod · 0.45

Tested by

no test coverage detected