r buffer format.</p><p><code class="constant">GL_INVALID_VALUE</code> is generated if
        <em class="parameter"><code>level</code></em> is less than 0.</p><p><code class="constant">GL_INVALID_VALUE</code> may be generated if
        <em class="parameter"><code>level</code></em> is greater than
        <math overflow="scroll">
            <msub><mo>log</mo><mn>2</mn></msub><mi>max</mi>
        </math>, where
        <em class="replaceable"><code>max</code></em> is the returned value of
        <code clas