()
| 33 | } |
| 34 | |
| 35 | function initPrograms() { |
| 36 | // need to update the draw graph because color mode shader has changed. |
| 37 | initDrawProgram(); |
| 38 | |
| 39 | if (config.isAudioEnabled) { |
| 40 | if (audioProgram) audioProgram.dispose(); |
| 41 | audioProgram = createAudioProgram(ctx); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | function initDrawProgram() { |
| 46 | if (drawProgram) drawProgram.unload(); |
no test coverage detected