softpipe/query: force parenthesis around a logical not
authorMartin Peres <martin.peres@linux.intel.com>
Fri, 5 Jun 2015 12:19:01 +0000 (15:19 +0300)
committerMartin Peres <martin.peres@linux.intel.com>
Mon, 8 Jun 2015 09:38:08 +0000 (12:38 +0300)
This makes GCC5 happy.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Martin Peres <martin.peres@linux.intel.com>
src/gallium/drivers/softpipe/sp_query.c

index e77387082bc0d71690e9f9ad8d3d4398aaad0ac7..76105b4c0ec2f660cb3505cb18dbb30408a3f63c 100644 (file)
@@ -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;
 }