diff options
Diffstat (limited to 'source/blender/nodes/shader/node_shader_util.c')
-rw-r--r-- | source/blender/nodes/shader/node_shader_util.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/nodes/shader/node_shader_util.c b/source/blender/nodes/shader/node_shader_util.c index 63c1cac566d..80cfba00e0a 100644 --- a/source/blender/nodes/shader/node_shader_util.c +++ b/source/blender/nodes/shader/node_shader_util.c @@ -257,12 +257,12 @@ void node_shader_gpu_tex_mapping(GPUMaterial *mat, bNode *node, GPUNodeStack *in static float min[3] = {-FLT_MAX, -FLT_MAX, -FLT_MAX}; GPUNodeLink *tmin, *tmax, *tmat0, *tmat1, *tmat2, *tmat3; - tmin = GPU_uniform_buffer((domin) ? texmap->min : min, GPU_VEC3); - tmax = GPU_uniform_buffer((domax) ? texmap->max : max, GPU_VEC3); - tmat0 = GPU_uniform_buffer((float *)texmap->mat[0], GPU_VEC4); - tmat1 = GPU_uniform_buffer((float *)texmap->mat[1], GPU_VEC4); - tmat2 = GPU_uniform_buffer((float *)texmap->mat[2], GPU_VEC4); - tmat3 = GPU_uniform_buffer((float *)texmap->mat[3], GPU_VEC4); + tmin = GPU_uniform((domin) ? texmap->min : min); + tmax = GPU_uniform((domax) ? texmap->max : max); + tmat0 = GPU_uniform((float *)texmap->mat[0]); + tmat1 = GPU_uniform((float *)texmap->mat[1]); + tmat2 = GPU_uniform((float *)texmap->mat[2]); + tmat3 = GPU_uniform((float *)texmap->mat[3]); GPU_link(mat, "mapping", in[0].link, tmat0, tmat1, tmat2, tmat3, tmin, tmax, &in[0].link); |