GLint _l_e_v_e_l, GLint _x_o_f_f_s_e_t, GLint _y_o_f_f_s_e_t, GLint _x, GLint _y, GLsizei _w_i_d_t_h, GLsizei _h_e_i_g_h_t )
delim $$
The screen-aligned pixel rectangle with lower left corner at (_x, _y) and with width _w_i_d_t_h and height _h_e_i_g_h_t replaces the portion of the texture array with x indices _x_o_f_f_s_e_t through _x_o_f_f_s_e_t$~+~$_w_i_d_t_h$~-~$1, inclusive, and y indices _y_o_f_f_s_e_t through _y_o_f_f_s_e_t$~+~$_h_e_i_g_h_t$~-~$1, inclusive, at the mipmap level specified by _l_e_v_e_l.
The pixels in the rectangle are processed exactly as if ggllCCooppyyPPiixxeellss had been called, but the process stops just before final conversion. At this point, all pixel component values are clamped to the range [0, 1] and then converted to the texture's internal for storage in the texel array.
The destination rectangle in the texture array may not include any texels outside the texture array as it was originally specified. It is not an error to specify a subtexture with zero width or height, but such a specification has no effect.
If any of the pixels within the specified rectangle of the current GGLL__RREEAADD__BBUUFFFFEERR are outside the read window associated with the current rendering context, then the values obtained for those pixels are undefined.
No change is made to the _i_n_t_e_r_n_a_l_f_o_r_m_a_t, _w_i_d_t_h, _h_e_i_g_h_t, or _b_o_r_d_e_r parameters of the specified texture array or to texel values outside the specified subregion.
Texturing has no effect in color index mode.
ggllPPiixxeellSSttoorree and ggllPPiixxeellTTrraannssffeerr modes affect texture images in exactly the way they affect ggllDDrraawwPPiixxeellss.
When the GGLL__AARRBB__iimmaaggiinngg extension is supported, the RGBA components read from the framebuffer may be processed by the imaging pipeline. See ggllTTeexxIImmaaggee11DD for specific details.
GGLL__IINNVVAALLIIDD__OOPPEERRAATTIIOONN is generated if the texture array has not been defined by a previous ggllTTeexxIImmaaggee22DD or ggllCCooppyyTTeexxIImmaaggee22DD operation.
GGLL__IINNVVAALLIIDD__VVAALLUUEE is generated if _l_e_v_e_l is less than 0.
GGLL__IINNVVAALLIIDD__VVAALLUUEE may be generated if _l_e_v_e_l is greater than $log sub 2 max$, where $max$ is the returned value of GGLL__MMAAXX__TTEEXXTTUURREE__SSIIZZEE.
GGLL__IINNVVAALLIIDD__VVAALLUUEE is generated if _x$ ~<~ ~-b$ or if _y$ ~<~ ~-b$, where $b$ is the border width of the texture array.
GGLL__IINNVVAALLIIDD__VVAALLUUEE is generated if $"xoffset" ~<~ -b$, (_x_o_f_f_s_e_t$~+~$_w_i_d_t_h)$~>~(w ~-~b)$, _y_o_f_f_s_e_t$~<~ ~-b$, or (_y_o_f_f_s_e_t$~+~$_h_e_i_g_h_t)$~>~(h ~-~b)$, where $w$ is the GGLL__TTEEXXTTUURREE__WWIIDDTTHH, $h$ is the GGLL__TTEEXXTTUURREE__HHEEIIGGHHTT, and $b$ is the GGLL__TTEEXXTTUURREE__BBOORRDDEERR of the texture image being modified. Note that $w$ and $h$ include twice the border width.
GGLL__IINNVVAALLIIDD__OOPPEERRAATTIIOONN is generated if ggllCCooppyyTTeexxSSuubbIImmaaggee22DD is executed between the execution of ggllBBeeggiinn and the corresponding execution of ggllEEnndd.