From: Yuanhan Liu Date: Mon, 19 Sep 2011 07:03:00 +0000 (+0800) Subject: mesa: fix error handling for glTexEnv X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b020b111a82266743d2cc501195defe687657e96;p=mesa.git mesa: fix error handling for glTexEnv Fix error handling while calling glTexEnv with invalid texture environment parameters. Signed-off-by: Yuanhan Liu Signed-off-by: Brian Paul --- diff --git a/src/mesa/main/texenv.c b/src/mesa/main/texenv.c index c0d0f3779b2..1df3890d471 100644 --- a/src/mesa/main/texenv.c +++ b/src/mesa/main/texenv.c @@ -731,7 +731,8 @@ get_texenvi(struct gl_context *ctx, const struct gl_texture_unit *texUnit, break; default: - ; + _mesa_error(ctx, GL_INVALID_ENUM, "glGetTexEnvfv(pname)"); + break; } return -1; /* error */