summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-05-05 15:41:15 -0600
committerBrian Paul <[email protected]>2015-05-05 16:00:53 -0600
commit0beaf1cd9a9a882b4f896dc1865622d72488ff31 (patch)
treea38af4819ee5b5b0220e13418f8e1b23a4683c1f
parentf7bdb2f3724808d6a280471847300abe192d4f5a (diff)
glsl: add parens in shader_integer_mix() to silence compiler warning
Silences gcc warning: builtin_functions.cpp:204:23: warning: suggest parentheses around '&&' within '||' [-Wparentheses] Reviewed-by: Ilia Mirkin <[email protected]>
-rw-r--r--src/glsl/builtin_functions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp
index 1df69561f7b..97055d85d58 100644
--- a/src/glsl/builtin_functions.cpp
+++ b/src/glsl/builtin_functions.cpp
@@ -201,7 +201,7 @@ static bool
shader_integer_mix(const _mesa_glsl_parse_state *state)
{
return state->is_version(450, 310) ||
- v130(state) && state->EXT_shader_integer_mix_enable;
+ (v130(state) && state->EXT_shader_integer_mix_enable);
}
static bool