diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-25 08:14:13 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-25 08:34:32 +0300 |
commit | c9e35c2ced92082c86f1ecb9ecd16c6230218c7c (patch) | |
tree | 24bd862961d2bbfa022cfc3c5262cfe1e63550b3 /source/blender/draw/engines/eevee_next/eevee_pipeline.cc | |
parent | 865894481ce76325d817533c654bda2ce2e65c66 (diff) |
Cleanup: remove redundant double parenthesis
Diffstat (limited to 'source/blender/draw/engines/eevee_next/eevee_pipeline.cc')
-rw-r--r-- | source/blender/draw/engines/eevee_next/eevee_pipeline.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/engines/eevee_next/eevee_pipeline.cc b/source/blender/draw/engines/eevee_next/eevee_pipeline.cc index 33978518ffc..21d1948f03c 100644 --- a/source/blender/draw/engines/eevee_next/eevee_pipeline.cc +++ b/source/blender/draw/engines/eevee_next/eevee_pipeline.cc @@ -173,7 +173,7 @@ PassMain::Sub *ForwardPipeline::prepass_transparent_add(const Object *ob, return nullptr; } DRWState state = DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS_EQUAL; - if ((blender_mat->blend_flag & MA_BL_CULL_BACKFACE)) { + if (blender_mat->blend_flag & MA_BL_CULL_BACKFACE) { state |= DRW_STATE_CULL_BACK; } float sorting_value = math::dot(float3(ob->obmat[3]), camera_forward_); @@ -188,7 +188,7 @@ PassMain::Sub *ForwardPipeline::material_transparent_add(const Object *ob, GPUMaterial *gpumat) { DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_BLEND_CUSTOM | DRW_STATE_DEPTH_LESS_EQUAL; - if ((blender_mat->blend_flag & MA_BL_CULL_BACKFACE)) { + if (blender_mat->blend_flag & MA_BL_CULL_BACKFACE) { state |= DRW_STATE_CULL_BACK; } float sorting_value = math::dot(float3(ob->obmat[3]), camera_forward_); |