()
| 889 | |
| 890 | |
| 891 | public void init() { |
| 892 | if (glProgram == 0 || contextIsOutdated()) { |
| 893 | create(); |
| 894 | if (compile()) { |
| 895 | pgl.attachShader(glProgram, glVertex); |
| 896 | pgl.attachShader(glProgram, glFragment); |
| 897 | |
| 898 | setup(); |
| 899 | |
| 900 | pgl.linkProgram(glProgram); |
| 901 | |
| 902 | validate(); |
| 903 | } |
| 904 | } |
| 905 | } |
| 906 | |
| 907 | |
| 908 | protected void create() { |
no test coverage detected