Skip to content
Snippets Groups Projects
Commit 42891dba authored by Juan A. Suárez's avatar Juan A. Suárez
Browse files

gettextsubimage: verify zoffset and depth are correct


According to OpenGL 4.6 spec, section 8.11.4 ("Texture Image Queries"),
relative to errors for GetTextureSubImage() function:

  "An INVALID_VALUE error is generated if the effective target is
   TEXTURE_1D and either yoffset is not zero, or height is not one.

   An INVALID_VALUE error is generated if the effective target is
   TEXTURE_1D, TEXTURE_1D_ARRAY, TEXTURE_2D or TEXTURE_RECTANGLE, and
   either zoffset is not zero, or depth is not one."

The commit fixes the check for height and depth.

This fixes arb_get_texture_sub_image piglit tests.

Signed-off-by: default avatarJuan A. Suarez Romero <jasuarez@igalia.com>
Reviewed-by: default avatarIago Toral Quiroga <itoral@igalia.com>
parent a63e69f5
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment