diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 7766904c91f..3c494be8209 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -2497,7 +2497,7 @@ texsubimage_error_check(struct gl_context *ctx, GLuint dimensions, } if (error_check_subtexture_dimensions(ctx, "glTexSubImage", dimensions, - texImage, xoffset, yoffset, 0, + texImage, xoffset, yoffset, zoffset, width, height, 1)) { return GL_TRUE; }