diff options
Diffstat (limited to 'source/blender/gpu/intern/gpu_codegen.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_codegen.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/gpu/intern/gpu_codegen.c b/source/blender/gpu/intern/gpu_codegen.c index f182f08f4a9..22665e2c0bf 100644 --- a/source/blender/gpu/intern/gpu_codegen.c +++ b/source/blender/gpu/intern/gpu_codegen.c @@ -159,7 +159,7 @@ static int gpu_str_prefix(const char *str, const char *prefix) str++; prefix++; } - + return (*prefix == '\0'); } @@ -278,7 +278,7 @@ static char *gpu_generate_function_prototyps(GHash *hash) GPUFunction *function; char *name, *prototypes; int a; - + /* automatically generate function prototypes to add to the top of the * generated code, to avoid have to add the actual code & recompile all */ ghi = BLI_ghashIterator_new(hash); @@ -716,7 +716,7 @@ static void codegen_call_functions(DynStr *ds, ListBase *nodes, GPUOutput *final for (node = nodes->first; node; node = node->next) { BLI_dynstr_appendf(ds, "\t%s(", node->name); - + for (input = node->inputs.first; input; input = input->next) { if (input->source == GPU_SOURCE_TEX) { BLI_dynstr_appendf(ds, "samp%d", input->texid); @@ -1230,7 +1230,7 @@ void GPU_pass_unbind(GPUPass *pass, ListBase *inputs) if (input->ima || input->prv) input->tex = NULL; } - + GPU_shader_unbind(); } @@ -1251,7 +1251,7 @@ static void gpu_node_link_free(GPUNodeLink *link) if (link->users < 0) fprintf(stderr, "GPU_node_link_free: negative refcount\n"); - + if (link->users == 0) { if (link->output) link->output->link = NULL; @@ -1292,7 +1292,7 @@ static void gpu_node_input_link(GPUNode *node, GPUNodeLink *link, const GPUType return; } } - + input = MEM_callocN(sizeof(GPUInput), "GPUInput"); input->node = node; @@ -1683,10 +1683,10 @@ GPUNodeLink *GPU_cube_map(Image *ima, ImageUser *iuser, bool is_data) GPUNodeLink *GPU_image_preview(PreviewImage *prv) { GPUNodeLink *link = GPU_node_link_create(); - + link->image = GPU_NODE_LINK_IMAGE_PREVIEW; link->ptr1 = prv; - + return link; } @@ -1870,7 +1870,7 @@ static void gpu_nodes_tag(GPUNodeLink *link) node = link->output->node; if (node->tag) return; - + node->tag = true; for (input = node->inputs.first; input; input = input->next) if (input->link) |