Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2019-05-16 15:12:32 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-05-17 14:38:42 +0300
commit26beaa2d901004cdba4b3811e353929a49c18a87 (patch)
tree23af403ea3114c851f6c78869783ccddbfd20887 /source/blender/gpu/intern/gpu_material.c
parent4856474b16f666e17a0073598fb9b74094b97f40 (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.c8
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