[Mesa-dev] [PATCH 2/5] mesa: define _MESA_NEW_SEPARATE_SPECULAR

Eric Anholt eric at anholt.net
Wed Nov 23 10:58:10 PST 2011


On Tue, 22 Nov 2011 18:07:01 -0700, Brian Paul <brianp at vmware.com> wrote:
> This will replace the soon-to-be-removed _DD_NEW_SEPARATE_SPECULAR flag.
> ---
>  src/mesa/main/mtypes.h |    6 ++++++
>  src/mesa/main/state.c  |    4 ++--
>  2 files changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
> index e8866c6..c94a065 100644
> --- a/src/mesa/main/mtypes.h
> +++ b/src/mesa/main/mtypes.h
> @@ -3130,6 +3130,12 @@ struct gl_matrix_stack
>                                             _NEW_POINT |		\
>                                             _NEW_PROGRAM |	\
>                                             _NEW_MODELVIEW)
> +
> +#define _MESA_NEW_SEPARATE_SPECULAR        (_NEW_LIGHT | \
> +                                            _NEW_FOG | \
> +                                            _NEW_PROGRAM)
> +
> +
>  /*@}*/

Having this one be _MESA_NEW_ looks weird to me.  I think I'd like to
have a couple more of these kinds of flags for computed state based off
of multiple _NEW_ bits, that look just like the rest of the _NEW_ flags.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20111123/efd6cb23/attachment.pgp>


More information about the mesa-dev mailing list