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>2018-06-04 10:10:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-04 10:11:45 +0300
commit0911acb5cf49c5ba05b1df045b41697704aa288a (patch)
tree9e6a84f0592cbd3b1066339538ae95289cf2eb08 /source/blender/gpu/intern/gpu_codegen.c
parent5b643018348280ee601a20fb9329d5a313c23446 (diff)
parent6654e109df952be3a3128fae2508a02c196ae593 (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/gpu/intern/gpu_codegen.c')
-rw-r--r--source/blender/gpu/intern/gpu_codegen.c18
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)