[Bf-blender-cvs] [1658fd1f7e3] master: Fix T68837 Eevee: Fix "GPU failed to find function math_max" message

Clément Foucault noreply at git.blender.org
Wed Aug 21 13:39:18 CEST 2019


Commit: 1658fd1f7e32996bdffa87d90806e99565e8b133
Author: Clément Foucault
Date:   Wed Aug 21 13:39:09 2019 +0200
Branches: master
https://developer.blender.org/rB1658fd1f7e32996bdffa87d90806e99565e8b133

Fix T68837 Eevee: Fix "GPU failed to find function math_max" message

Was a missing rename.

===================================================================

M	source/blender/nodes/shader/nodes/node_shader_normal_map.c

===================================================================

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) {



More information about the Bf-blender-cvs mailing list