Merge branch 'master' into blender2.8
[blender.git] / source / blender / gpu / intern / gpu_material.c
index 4efb8ca07b20d4d5c59f9a645c3c73ff23a2925b..2d7b941503094d2ca4caa8a33d22329da16458a9 100644 (file)
@@ -417,7 +417,7 @@ void GPU_material_bind_uniforms(
                        GPU_shader_uniform_vector(shader, material->partscalarpropsloc, 4, 1, pi->scalprops);
                }
                if (material->builtins & GPU_PARTICLE_LOCATION) {
-                       GPU_shader_uniform_vector(shader, material->partcoloc, 3, 1, pi->location);
+                       GPU_shader_uniform_vector(shader, material->partcoloc, 4, 1, pi->location);
                }
                if (material->builtins & GPU_PARTICLE_VELOCITY) {
                        GPU_shader_uniform_vector(shader, material->partvel, 3, 1, pi->velocity);