diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-04-27 01:09:44 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-04-27 01:09:44 +0300 |
commit | 2b3657a838fed826d29900bbf8824f909b9173bc (patch) | |
tree | a8758e82b5630432c36878d74f0a6a5e901f2214 /source/blender/gpu/intern/gpu_codegen.c | |
parent | 1da0d0042a8d860765bb6ca6fef9577f37c011c9 (diff) |
Code cleanup: minor cleanups for GPU_link return values, normal map node.
Diffstat (limited to 'source/blender/gpu/intern/gpu_codegen.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_codegen.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/gpu/intern/gpu_codegen.c b/source/blender/gpu/intern/gpu_codegen.c index 7cd05eff64e..94d52c3617c 100644 --- a/source/blender/gpu/intern/gpu_codegen.c +++ b/source/blender/gpu/intern/gpu_codegen.c @@ -1496,7 +1496,7 @@ bool GPU_link(GPUMaterial *mat, const char *name, ...) function = gpu_lookup_function(name); if (!function) { fprintf(stderr, "GPU failed to find function %s\n", name); - return 0; + return false; } node = GPU_node_begin(name); @@ -1516,7 +1516,7 @@ bool GPU_link(GPUMaterial *mat, const char *name, ...) gpu_material_add_node(mat, node); - return 1; + return true; } bool GPU_stack_link(GPUMaterial *mat, const char *name, GPUNodeStack *in, GPUNodeStack *out, ...) @@ -1530,7 +1530,7 @@ bool GPU_stack_link(GPUMaterial *mat, const char *name, GPUNodeStack *in, GPUNod function = gpu_lookup_function(name); if (!function) { fprintf(stderr, "GPU failed to find function %s\n", name); - return 0; + return false; } node = GPU_node_begin(name); @@ -1577,7 +1577,7 @@ bool GPU_stack_link(GPUMaterial *mat, const char *name, GPUNodeStack *in, GPUNod gpu_material_add_node(mat, node); - return 1; + return true; } int GPU_link_changed(GPUNodeLink *link) |