er program object, it will be
    deleted after it has been detached.</p>
      </div>
      <div class="refsect1" id="errors">
        <h2>Errors</h2>
        <p><code class="constant">GL_INVALID_VALUE</code> is generated if either
    <em class="parameter"><code>program</code></em> or <em class="parameter"><code>shader</code></em>
    is a value that was not generated by OpenGL.</p>
        <p><code class="constant">GL_INVALID_OPERATION</code> is generated if
    <em class="parameter"><code>program</code>