From 8614b9e489e65bb672ab16053d30ce8708856214 Mon Sep 17 00:00:00 2001 From: Martin Peres Date: Fri, 5 Jun 2015 15:19:01 +0300 Subject: [PATCH] softpipe/query: force parenthesis around a logical not This makes GCC5 happy. Reviewed-by: Brian Paul Signed-off-by: Martin Peres --- src/gallium/drivers/softpipe/sp_query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/softpipe/sp_query.c b/src/gallium/drivers/softpipe/sp_query.c index e77387082bc..76105b4c0ec 100644 --- a/src/gallium/drivers/softpipe/sp_query.c +++ b/src/gallium/drivers/softpipe/sp_query.c @@ -277,7 +277,7 @@ softpipe_check_render_cond(struct softpipe_context *sp) b = pipe->get_query_result(pipe, sp->render_cond_query, wait, (void*)&result); if (b) - return (!result == sp->render_cond_cond); + return (!result) == sp->render_cond_cond; else return TRUE; } -- 2.30.2