[Mesa-dev] [PATCH] mesa: fix error reported on gTexSubImage2D when level not valid
Juha-Pekka Heikkila
juhapekka.heikkila at gmail.com
Tue Oct 7 06:38:19 PDT 2014
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
On 07.10.2014 10:56, Tapani Pälli wrote:
> Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
> ---
> src/mesa/main/teximage.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
> index 647d28a..c0298af 100644
> --- a/src/mesa/main/teximage.c
> +++ b/src/mesa/main/teximage.c
> @@ -2449,7 +2449,7 @@ texsubimage_error_check(struct gl_context *ctx, GLuint dimensions,
>
> /* level check */
> if (level < 0 || level >= _mesa_max_texture_levels(ctx, target)) {
> - _mesa_error(ctx, GL_INVALID_ENUM, "glTexSubImage%uD(level=%d)",
> + _mesa_error(ctx, GL_INVALID_VALUE, "glTexSubImage%uD(level=%d)",
> dimensions, level);
> return GL_TRUE;
> }
>
More information about the mesa-dev
mailing list