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:
authorCampbell Barton <campbell@blender.org>2022-09-23 08:24:20 +0300
committerCampbell Barton <campbell@blender.org>2022-09-23 08:29:21 +0300
commitfbd78a8d78f460d1ae2972538139ac1602c012f6 (patch)
tree137e77868514388454cd597380db44d285005f39 /source/blender/gpu/intern
parentc655bdfa3156f612b01b55b4c6e24d89fad4c748 (diff)
Cleanup: use ELEM macro
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r--source/blender/gpu/intern/gpu_shader_dependency.cc3
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();