summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/swr_query.cpp
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2016-04-21 11:50:40 -0500
committerTim Rowley <[email protected]>2016-04-22 18:03:41 -0500
commit5815c8b3d3b7fe3311ac51533438f24f09768ad6 (patch)
treeb9d37d67a163e93c873fbfa2f8d73e5188e9badb /src/gallium/drivers/swr/swr_query.cpp
parente85bef8b128eef7ae549a95bac197601435da9cd (diff)
swr: fix clang warnings
v2: use alternate logic version in swr_check_render_cond Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_query.cpp')
-rw-r--r--src/gallium/drivers/swr/swr_query.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/swr_query.cpp b/src/gallium/drivers/swr/swr_query.cpp
index ff4d9b35018..f038a6e6390 100644
--- a/src/gallium/drivers/swr/swr_query.cpp
+++ b/src/gallium/drivers/swr/swr_query.cpp
@@ -315,7 +315,7 @@ swr_check_render_cond(struct pipe_context *pipe)
b = pipe->get_query_result(
pipe, ctx->render_cond_query, wait, (union pipe_query_result *)&result);
if (b)
- return (!result == ctx->render_cond_cond);
+ return ((!result) == ctx->render_cond_cond);
else
return TRUE;
}