diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-23 08:24:20 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-23 08:29:21 +0300 |
commit | fbd78a8d78f460d1ae2972538139ac1602c012f6 (patch) | |
tree | 137e77868514388454cd597380db44d285005f39 /source/blender/gpu/intern | |
parent | c655bdfa3156f612b01b55b4c6e24d89fad4c748 (diff) |
Cleanup: use ELEM macro
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r-- | source/blender/gpu/intern/gpu_shader_dependency.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_shader_dependency.cc b/source/blender/gpu/intern/gpu_shader_dependency.cc index 2c59cb6e501..5f600ee55d8 100644 --- a/source/blender/gpu/intern/gpu_shader_dependency.cc +++ b/source/blender/gpu/intern/gpu_shader_dependency.cc @@ -109,8 +109,7 @@ struct GPUSource { } if ((source.find("drw_debug_") != StringRef::not_found) && /* Avoid these two files where it makes no sense to add the dependency. */ - (filename != "common_debug_draw_lib.glsl" && - filename != "draw_debug_draw_display_vert.glsl")) { + (!ELEM(filename, "common_debug_draw_lib.glsl", "draw_debug_draw_display_vert.glsl"))) { builtins |= shader::BuiltinBits::USE_DEBUG_DRAW; } check_no_quotes(); |