meta: add parenthesis to silence compiler warnings
authorBrian Paul <brianp@vmware.com>
Thu, 30 Aug 2012 14:43:27 +0000 (08:43 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 30 Aug 2012 15:26:51 +0000 (09:26 -0600)
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/common/meta.c

index abb7d4e97fa8ba529b3686ada4537f23320840ec..3a34b1e684f14722748cc1d25ff05026dcf79b39 100644 (file)
@@ -1425,7 +1425,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);
          }
@@ -3607,7 +3607,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);
       }