mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
mesa: fix shininess check for ffvertex_prog v2
Switch to using VERT_BIT_GENERIC macro, as varying_vp_inputs is a bitmask. Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: mesa-stable@lists.freedesktop.org
This commit is contained in:
parent
24ecf37ac0
commit
ce01c0af70
1 changed files with 1 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ static GLboolean check_active_shininess( struct gl_context *ctx,
|
|||
(key->light_color_material_mask & (1 << attr)))
|
||||
return GL_TRUE;
|
||||
|
||||
if (key->varying_vp_inputs & VERT_ATTRIB_GENERIC(attr))
|
||||
if (key->varying_vp_inputs & VERT_BIT_GENERIC(attr))
|
||||
return GL_TRUE;
|
||||
|
||||
if (ctx->Light.Material.Attrib[attr][0] != 0.0F)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue