From 6701933f5ce4598d2fc98bd27a5b8a4e58ca06e2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 21 Apr 2012 12:51:47 +0000 Subject: style cleanup --- source/blender/gpu/intern/gpu_codegen.c | 12 ++++++------ source/blender/gpu/intern/gpu_material.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'source/blender/gpu') diff --git a/source/blender/gpu/intern/gpu_codegen.c b/source/blender/gpu/intern/gpu_codegen.c index 14d6428bf50..a40452adfe7 100644 --- a/source/blender/gpu/intern/gpu_codegen.c +++ b/source/blender/gpu/intern/gpu_codegen.c @@ -263,11 +263,11 @@ void GPU_codegen_exit(void) glsl_material_library = NULL; } - /*if(FUNCTION_PROTOTYPES) { + /*if (FUNCTION_PROTOTYPES) { MEM_freeN(FUNCTION_PROTOTYPES); FUNCTION_PROTOTYPES = NULL; }*/ - /*if(FUNCTION_LIB) { + /*if (FUNCTION_LIB) { GPU_shader_free(FUNCTION_LIB); FUNCTION_LIB = NULL; }*/ @@ -587,7 +587,7 @@ static char *code_generate_fragment(ListBase *nodes, GPUOutput *output, const ch codegen_set_unique_ids(nodes); codegen_print_uniforms_functions(ds, nodes); - //if(G.debug & G_DEBUG) + //if (G.debug & G_DEBUG) // BLI_dynstr_appendf(ds, "/* %s */\n", name); BLI_dynstr_append(ds, "void main(void)\n"); @@ -602,7 +602,7 @@ static char *code_generate_fragment(ListBase *nodes, GPUOutput *output, const ch code = BLI_dynstr_get_cstring(ds); BLI_dynstr_free(ds); - //if(G.debug & G_DEBUG) printf("%s\n", code); + //if (G.debug & G_DEBUG) printf("%s\n", code); return code; } @@ -645,7 +645,7 @@ static char *code_generate_vertex(ListBase *nodes) BLI_dynstr_free(ds); - //if(G.debug & G_DEBUG) printf("%s\n", code); + //if (G.debug & G_DEBUG) printf("%s\n", code); return code; } @@ -1319,7 +1319,7 @@ GPUPass *GPU_generate_pass(ListBase *nodes, GPUNodeLink *outlink, GPUVertexAttri GPUPass *pass; char *vertexcode, *fragmentcode; - /*if(!FUNCTION_LIB) { + /*if (!FUNCTION_LIB) { GPU_nodes_free(nodes); return NULL; }*/ diff --git a/source/blender/gpu/intern/gpu_material.c b/source/blender/gpu/intern/gpu_material.c index 906856cc64c..56bee29e436 100644 --- a/source/blender/gpu/intern/gpu_material.c +++ b/source/blender/gpu/intern/gpu_material.c @@ -631,7 +631,7 @@ static void shade_one_light(GPUShadeInput *shi, GPUShadeResult *shr, GPULamp *la visifac= lamp_get_visibility(mat, lamp, &lv, &dist); - /*if(ma->mode & MA_TANGENT_V) + /*if (ma->mode & MA_TANGENT_V) GPU_link(mat, "shade_tangent_v", lv, GPU_attribute(CD_TANGENT, ""), &vn);*/ GPU_link(mat, "shade_inp", vn, lv, &inp); -- cgit v1.2.3