diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-02-06 05:33:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-02-06 05:33:18 +0300 |
commit | 3560f5c1e64e89d345fb2640bb502a433348e4b7 (patch) | |
tree | 81459f472d83aa60444268ec2569030c9ff1db5d /source/blender/draw/engines/overlay/overlay_antialiasing.c | |
parent | f10825d573c2f64d090c2dd94d94a018b9e93d21 (diff) |
Cleanup: compare with zero for flag checks
This is done almost everywhere already,
use this more straightforward convention.
Diffstat (limited to 'source/blender/draw/engines/overlay/overlay_antialiasing.c')
-rw-r--r-- | source/blender/draw/engines/overlay/overlay_antialiasing.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_antialiasing.c b/source/blender/draw/engines/overlay/overlay_antialiasing.c index c602e536f79..b263254696c 100644 --- a/source/blender/draw/engines/overlay/overlay_antialiasing.c +++ b/source/blender/draw/engines/overlay/overlay_antialiasing.c @@ -80,7 +80,7 @@ void OVERLAY_antialiasing_init(OVERLAY_Data *vedata) bool need_wire_expansion = (G_draw.block.sizePixel > 1.0f); pd->antialiasing.enabled = need_wire_expansion || - ((U.gpu_flag & USER_GPU_FLAG_OVERLAY_SMOOTH_WIRE) > 0); + ((U.gpu_flag & USER_GPU_FLAG_OVERLAY_SMOOTH_WIRE) != 0); GPUTexture *color_tex = NULL; GPUTexture *line_tex = NULL; @@ -127,7 +127,7 @@ void OVERLAY_antialiasing_cache_init(OVERLAY_Data *vedata) if (pd->antialiasing.enabled) { /* `antialiasing.enabled` is also enabled for wire expansion. Check here if * anti aliasing is needed. */ - const bool do_smooth_lines = (U.gpu_flag & USER_GPU_FLAG_OVERLAY_SMOOTH_WIRE) > 0; + const bool do_smooth_lines = (U.gpu_flag & USER_GPU_FLAG_OVERLAY_SMOOTH_WIRE) != 0; DRW_PASS_CREATE(psl->antialiasing_ps, DRW_STATE_WRITE_COLOR | DRW_STATE_BLEND_ALPHA_PREMUL); |