mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 15:30:14 +01:00
meta: add parenthesis to silence compiler warnings
Reviewed-by: Paul Berry <stereotype441@gmail.com>
This commit is contained in:
parent
9121460f13
commit
aad7ccd261
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue