mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
mesa: fix error handling for glTexEnv
Fix error handling while calling glTexEnv with invalid texture environment parameters. Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
f1ddde5c16
commit
b020b111a8
1 changed files with 2 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue