style cleanup

This commit is contained in:
Campbell Barton
2012-04-21 12:51:47 +00:00
parent 96b024333e
commit 6701933f5c
64 changed files with 121 additions and 113 deletions

View File

@@ -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;
}*/

View File

@@ -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);