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:
authorCampbell Barton <ideasman42@gmail.com>2012-04-21 16:51:47 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-21 16:51:47 +0400
commit6701933f5ce4598d2fc98bd27a5b8a4e58ca06e2 (patch)
tree86eb9432c2350152aa7d829bb7adf41cf9fd2bde /source/blender/gpu
parent96b024333edf31fb02881b1c2fbacaf556a49439 (diff)
style cleanup
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_codegen.c12
-rw-r--r--source/blender/gpu/intern/gpu_material.c2
2 files changed, 7 insertions, 7 deletions
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);