diff options
author | Lionel Landwerlin <[email protected]> | 2017-10-05 18:13:37 +0100 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2017-10-10 00:56:01 +0100 |
commit | 8ee6828df7f5d04715caf8b0433ca24c0e1a6ba1 (patch) | |
tree | 38b8b060c6d53fab4c600ddfb4bd57889c2f5179 /src/mesa | |
parent | 91ba331ef4fee34085628af12a188924a28cd808 (diff) |
i965: silence coverity warning
Also makes this statement a bit clearer.
CID: 1418920
Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Antia Puentes <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index c7ed7284501..7ebed98fcef 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/mesa/drivers/dri/i965/brw_draw.c @@ -955,7 +955,7 @@ brw_draw_indirect_prims(struct gl_context *ctx, prim[draw_count - 1].end = 1; for (i = 0; i < draw_count; ++i, indirect_offset += stride) { prim[i].mode = mode; - prim[i].indexed = !!ib; + prim[i].indexed = ib != NULL; prim[i].indirect_offset = indirect_offset; prim[i].is_indirect = 1; prim[i].draw_id = i; |