[Mesa-dev] [PATCH] swrast: remove unneeded & operators in _swrast_choose_texture_sample_func()

Eric Anholt eric at anholt.net
Mon Jul 20 11:50:00 PDT 2015


Brian Paul <brianp at vmware.com> writes:

> ---
>  src/mesa/swrast/s_texfilter.c | 56 +++++++++++++++++++++----------------------
>  1 file changed, 28 insertions(+), 28 deletions(-)
>
> diff --git a/src/mesa/swrast/s_texfilter.c b/src/mesa/swrast/s_texfilter.c
> index abc1727..cd6395f 100644
> --- a/src/mesa/swrast/s_texfilter.c
> +++ b/src/mesa/swrast/s_texfilter.c
> @@ -3713,7 +3713,7 @@ _swrast_choose_texture_sample_func( struct gl_context *ctx,
>                                      const struct gl_sampler_object *sampler)
>  {
>     if (!t || !_mesa_is_texture_complete(t, sampler)) {
> -      return &null_sample_func;
> +      return null_sample_func;

Much prettier.

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150720/d47c6060/attachment.sig>


More information about the mesa-dev mailing list