()
| 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() { |
no test coverage detected