diff options
author | Brian Paul <[email protected]> | 2012-08-30 08:43:27 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-08-30 09:26:51 -0600 |
commit | aad7ccd261e67e9d943dcab17ebe8082d7b6f4d9 (patch) | |
tree | 9bd8887e0af999c6312b385de73b20316402de15 /src/mesa/drivers/common/meta.c | |
parent | 9121460f13c420d9cd2783636fe79bc4798eebed (diff) |
meta: add parenthesis to silence compiler warnings
Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/mesa/drivers/common/meta.c')
-rw-r--r-- | 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 abb7d4e97fa..3a34b1e684f 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/drivers/common/meta.c @@ -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); } |