diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-05-16 15:12:32 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-05-17 14:38:42 +0300 |
commit | 26beaa2d901004cdba4b3811e353929a49c18a87 (patch) | |
tree | 23af403ea3114c851f6c78869783ccddbfd20887 /source/blender/gpu/intern/gpu_material.c | |
parent | 4856474b16f666e17a0073598fb9b74094b97f40 (diff) |
Cleanup: Eevee: Use SET_FLAG_FROM_TEST
Diffstat (limited to 'source/blender/gpu/intern/gpu_material.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_material.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/gpu/intern/gpu_material.c b/source/blender/gpu/intern/gpu_material.c index de9ed56abf5..4f90155b88c 100644 --- a/source/blender/gpu/intern/gpu_material.c +++ b/source/blender/gpu/intern/gpu_material.c @@ -678,12 +678,8 @@ GPUMaterial *GPU_material_from_nodetree(Scene *scene, gpu_material_ramp_texture_build(mat); - if (has_surface_output) { - mat->domain |= GPU_DOMAIN_SURFACE; - } - if (has_volume_output) { - mat->domain |= GPU_DOMAIN_VOLUME; - } + SET_FLAG_FROM_TEST(mat->domain, has_surface_output, GPU_DOMAIN_SURFACE); + SET_FLAG_FROM_TEST(mat->domain, has_volume_output, GPU_DOMAIN_VOLUME); if (mat->outlink) { /* Prune the unused nodes and extract attributes before compiling so the |