[Mesa-dev] [PATCH 4/4] softpipe/query: force parenthesis around a logical not
Martin Peres
martin.peres at linux.intel.com
Fri Jun 5 05:31:52 PDT 2015
This makes GCC5 happy.
Signed-off-by: Martin Peres <martin.peres at linux.intel.com>
---
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 e773870..76105b4 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.4.2
More information about the mesa-dev
mailing list