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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-08-27 19:20:40 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-08-27 19:22:29 +0300
commitc5b8d3b6d78fead1ca8c871d86c3d92924267c55 (patch)
tree1838608bd3455fa21cddfc5b44555db688533bb9 /source/blender/gpu
parentec9e2dc3c08412b906d3d588b0a1268bbbdeb97e (diff)
Cleanup: fix compiler warning
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_codegen.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/gpu/intern/gpu_codegen.c b/source/blender/gpu/intern/gpu_codegen.c
index cbf6665b3bb..8199f0ca194 100644
--- a/source/blender/gpu/intern/gpu_codegen.c
+++ b/source/blender/gpu/intern/gpu_codegen.c
@@ -1785,10 +1785,8 @@ static void gpu_material_use_library(GPUMaterial *material, GPUMaterialLibrary *
GSet *used_libraries = gpu_material_used_libraries(material);
if (BLI_gset_add(used_libraries, library->code)) {
- if (library->dependencies) {
- for (int i = 0; library->dependencies[i]; i++) {
- BLI_gset_add(used_libraries, library->dependencies[i]);
- }
+ for (int i = 0; library->dependencies[i]; i++) {
+ BLI_gset_add(used_libraries, library->dependencies[i]);
}
}
}