diff options
author | Yuanhan Liu <[email protected]> | 2011-09-19 15:03:00 +0800 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-09-19 08:11:51 -0600 |
commit | b020b111a82266743d2cc501195defe687657e96 (patch) | |
tree | a2a5723c446932bb4ef855bd6e69057689c527af | |
parent | f1ddde5c16ef61a6c08af012af3e5f34aebaf7a0 (diff) |
mesa: fix error handling for glTexEnv
Fix error handling while calling glTexEnv with invalid texture
environment parameters.
Signed-off-by: Yuanhan Liu <[email protected]>
Signed-off-by: Brian Paul <[email protected]>
-rw-r--r-- | src/mesa/main/texenv.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |