- <code class="constant">GL_INVALID_VALUE</code> is generated if non-power-of-two textures are not supported and the <em class="parameter"><code>width</code></em> cannot be represented as
- <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
-
- <mml:mrow>
- <mml:msup><mml:mn>2</mml:mn>
- <mml:mi mathvariant="italic">n</mml:mi>
- </mml:msup>
- <mml:mo>+</mml:mo>
- <mml:mrow>
- <mml:mn>2</mml:mn>
- <mml:mo></mml:mo>
- <mml:mfenced open="(" close=")">
- <mml:mi mathvariant="italic">border</mml:mi>
- </mml:mfenced>
- </mml:mrow>
- </mml:mrow>
- </mml:math>
- for some integer value of <span class="emphasis"><em>n</em></span>.
- </p><p>
- <code class="constant">GL_INVALID_VALUE</code> is generated if <em class="parameter"><code>border</code></em> is not 0 or 1.