diff options
author | Yuanhan Liu <[email protected]> | 2011-09-20 13:32:50 +0800 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-09-20 08:05:34 -0600 |
commit | a11b4c1e7aa0958e6128bbfae2173e289b2cce8f (patch) | |
tree | a7cb52729b66958ab3f90c5473bdc57b385a5c12 /configs/linux-sparc5 | |
parent | a5f8d37be141fac5c4ac605163a552ac64324e15 (diff) |
mesa: fix error handling for glMaterial*
Trigger GL_INVALID_ENUM error if the face paramter is not a valid value.
Trigger GL_INVALID_VALUE error if the GL_SHININESS value is out side
[0, ctx->Constant.MaxShiniess].
v2: fix the max shininess value.
v3: suggested by Brian, move the face check into glMaterialfv function
to reduce code duplicate. Also, refactor the error message.
Signed-off-by: Yuanhan Liu <[email protected]>
Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'configs/linux-sparc5')
0 files changed, 0 insertions, 0 deletions