<function>glInvalidateTexSubImage</function> invalidates all of
a texture image. <parameter>texture</parameter> and <parameter>level</parameter> indicated
which texture image is being invalidated. After this command, data in the texture image has undefined
values.
</para>
<para>
<parameter>level</parameter> must be greater than or equal to zero and be
less than the base 2 logarithm of the maximum texture width, height, or depth.
</para>
<para>
For textures of targets <constant>GL_TEXTURE_RECTANGLE</constant>, <constant>GL_TEXTURE_BUFFER</constant>, <constant>GL_TEXTURE_2D_MULTISAMPLE</constant>, or
<constant>GL_TEXTURE_2D_MULTISAMPLE_ARRAY</constant>, level must be zero.
</para>
</refsect1>
<refsect1id="errors"><title>Errors</title>
<para>
<constant>GL_INVALID_VALUE</constant> is generated if <parameter>level</parameter> is
less than zero or if it is greater or equal to the base 2 logarithm of the maximum texture width, height, or depth.
</para>
<para>
<constant>GL_INVALID_VALUE</constant> is generated if the target of <parameter>texture</parameter>
is any of <constant>GL_TEXTURE_RECTANGLE</constant>, <constant>GL_TEXTURE_BUFFER</constant>, <constant>GL_TEXTURE_2D_MULTISAMPLE</constant>, or
<constant>GL_TEXTURE_2D_MULTISAMPLE_ARRAY</constant> and <parameter>level</parameter> is not zero.
</para>
<para>
<constant>GL_INVALID_VALUE</constant> is generated if <parameter>texture</parameter> is not the