diff options
author | Juan A. Suarez Romero <[email protected]> | 2018-04-05 08:48:26 +0000 |
---|---|---|
committer | Juan A. Suarez Romero <[email protected]> | 2018-04-13 17:47:27 +0200 |
commit | 42891dbaa12a67162ea219fface71726696971e2 (patch) | |
tree | 88ce6540f8e52fdc74239eb4691bf0a2719e5a52 /SConstruct | |
parent | a63e69f5f0b4d960bd106068d8c7d13b82fea759 (diff) |
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: Juan A. Suarez Romero <[email protected]>
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'SConstruct')
0 files changed, 0 insertions, 0 deletions