()
| 898 | |
| 899 | |
| 900 | public void init() { |
| 901 | if (glProgram == 0 || contextIsOutdated()) { |
| 902 | create(); |
| 903 | if (compile()) { |
| 904 | pgl.attachShader(glProgram, glVertex); |
| 905 | pgl.attachShader(glProgram, glFragment); |
| 906 | |
| 907 | setup(); |
| 908 | |
| 909 | pgl.linkProgram(glProgram); |
| 910 | |
| 911 | validate(); |
| 912 | } |
| 913 | } |
| 914 | } |
| 915 | |
| 916 | |
| 917 | protected void create() { |
no test coverage detected