[Mesa-dev] [PATCH] meta: add parenthesis to silence compiler warnings

Paul Berry stereotype441 at gmail.com
Thu Aug 30 08:16:55 PDT 2012


On 30 August 2012 07:45, Brian Paul <brianp at vmware.com> wrote:

> ---
>  src/mesa/drivers/common/meta.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/mesa/drivers/common/meta.c
> b/src/mesa/drivers/common/meta.c
> index 9a6b72b..1ec1508 100644
> --- a/src/mesa/drivers/common/meta.c
> +++ b/src/mesa/drivers/common/meta.c
> @@ -1444,7 +1444,7 @@ blitframebuffer_texture(struct gl_context *ctx,
>             _mesa_SamplerParameteri(sampler, GL_TEXTURE_SRGB_DECODE_EXT,
>                                 GL_SKIP_DECODE_EXT);
>          }
> -         if (_mesa_is_desktop_gl(ctx) &&
> ctx->Extensions.EXT_framebuffer_sRGB
> +         if ((_mesa_is_desktop_gl(ctx) &&
> ctx->Extensions.EXT_framebuffer_sRGB)
>               || _mesa_is_gles3(ctx)) {
>              _mesa_set_enable(ctx, GL_FRAMEBUFFER_SRGB_EXT, GL_FALSE);
>           }
> @@ -3626,7 +3626,7 @@ decompress_texture_image(struct gl_context *ctx,
>        }
>
>        /* No sRGB decode or encode.*/
> -      if (_mesa_is_desktop_gl(ctx) && ctx->Extensions.EXT_framebuffer_sRGB
> +      if ((_mesa_is_desktop_gl(ctx) &&
> ctx->Extensions.EXT_framebuffer_sRGB)
>            || _mesa_is_gles3(ctx)) {
>           _mesa_set_enable(ctx, GL_FRAMEBUFFER_SRGB_EXT, GL_FALSE);
>        }
> --
> 1.7.3.4
>

Reviewed-by: Paul Berry <stereotype441 at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120830/69e8e513/attachment-0001.html>


More information about the mesa-dev mailing list