Using a Shader Pipeline

Bind a shader program before rendering with it

gl.useProgram(program);
function render() {
   gl.clear(gl.COLOR_BUFFER_BIT);

   gl.useProgram(program);

   // issue draw calls
}