mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 12:30:11 +01:00
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>
This commit is contained in:
parent
fbd6eba72b
commit
2aa71e9485
1 changed files with 2 additions and 2 deletions
|
|
@ -2491,8 +2491,8 @@ texsubimage_error_check(struct gl_context *ctx, GLuint dimensions,
|
|||
}
|
||||
|
||||
if (error_check_subtexture_dimensions(ctx, dimensions,
|
||||
texImage, xoffset, yoffset, 0,
|
||||
width, height, 1,
|
||||
texImage, xoffset, yoffset, zoffset,
|
||||
width, height, depth,
|
||||
dsa ? "glTextureSubImage" :
|
||||
"glTexSubImage")) {
|
||||
return GL_TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue