diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-06-25 14:44:30 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-06-25 14:44:30 +0400 |
commit | 37f59451889d64e588ace4f16f7eebd085d8147a (patch) | |
tree | 6ae91a0e777b02286a0e59e9405a0aac068c76b1 /source/blender/gpu/intern | |
parent | 02bcfa19509c900d40e9ee3edada8cf068ea32a2 (diff) |
style cleanup
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r-- | source/blender/gpu/intern/gpu_codegen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_codegen.c b/source/blender/gpu/intern/gpu_codegen.c index f9e1babcb56..e244c7cf57f 100644 --- a/source/blender/gpu/intern/gpu_codegen.c +++ b/source/blender/gpu/intern/gpu_codegen.c @@ -567,7 +567,7 @@ static void codegen_call_functions(DynStr *ds, ListBase *nodes, GPUOutput *final "tmp", input->link->output->id); } else if (input->source == GPU_SOURCE_BUILTIN) { - if(input->builtin == GPU_VIEW_NORMAL) + if (input->builtin == GPU_VIEW_NORMAL) BLI_dynstr_append(ds, "facingnormal"); else BLI_dynstr_append(ds, GPU_builtin_name(input->builtin)); @@ -615,7 +615,7 @@ static char *code_generate_fragment(ListBase *nodes, GPUOutput *output, const ch BLI_dynstr_append(ds, "void main(void)\n"); BLI_dynstr_append(ds, "{\n"); - if(builtins & GPU_VIEW_NORMAL) + if (builtins & GPU_VIEW_NORMAL) BLI_dynstr_append(ds, "\tvec3 facingnormal = (gl_FrontFacing)? varnormal: -varnormal;\n"); |