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:
authorClément Foucault <foucault.clem@gmail.com>2019-08-21 14:39:09 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-08-21 14:39:09 +0300
commit1658fd1f7e32996bdffa87d90806e99565e8b133 (patch)
treeb3c03e52d007e4c7aeca67732e863d70e563752e /source/blender/nodes
parentde232f8887b6674bbb01c12d32d1860491b7bdd5 (diff)
Fix T68837 Eevee: Fix "GPU failed to find function math_max" message
Was a missing rename.
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/shader/nodes/node_shader_normal_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/nodes/shader/nodes/node_shader_normal_map.c b/source/blender/nodes/shader/nodes/node_shader_normal_map.c
index 4976d038065..3d034372300 100644
--- a/source/blender/nodes/shader/nodes/node_shader_normal_map.c
+++ b/source/blender/nodes/shader/nodes/node_shader_normal_map.c
@@ -58,7 +58,7 @@ static int gpu_shader_normal_map(GPUMaterial *mat,
GPUNodeLink *realnorm;
GPUNodeLink *strength;
- float d[4] = {0, 0, 0, 0};
+ float strength_min[4] = {0, 0, 0, 0};
if (in[0].link) {
strength = in[0].link;
@@ -85,7 +85,7 @@ static int gpu_shader_normal_map(GPUMaterial *mat,
}
negnorm = GPU_builtin(GPU_WORLD_NORMAL);
- GPU_link(mat, "math_max", strength, GPU_constant(d), &strength);
+ GPU_link(mat, "math_maximum", strength, GPU_constant(strength_min), &strength);
const char *color_to_normal_fnc_name = "color_to_normal_new_shading";
if (nm->space == SHD_SPACE_BLENDER_OBJECT || nm->space == SHD_SPACE_BLENDER_WORLD) {