mesa: Fix error validating args for TexSubImage3D
authorEduardo Lima Mitev <elima@igalia.com>
Mon, 2 Feb 2015 17:14:47 +0000 (18:14 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Tue, 24 Feb 2015 07:58:53 +0000 (08:58 +0100)
commit2aa71e9485a5a062b1bd2dd8bdc081a8fa4c873d
tree896698bacf4f5b4743538a81638fc830dc530ac6
parentfbd6eba72bd282297c5f49371e89a1c18cb24151
mesa: Fix error validating args for TexSubImage3D

The zoffset and depth values were not being considered when calling
error_check_subtexture_dimensions().

Fixes 2 dEQP tests:
* dEQP-GLES3.functional.negative_api.texture.texsubimage3d_neg_offset
* dEQP-GLES3.functional.negative_api.texture.texsubimage3d_invalid_offset

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Cc: "10.4 10.5" <mesa-stable@lists.freedestkop.org>
src/mesa/main/teximage.c