Fix T47207: Material shading incorrectly handles colorramp node
[blender.git] / source / blender / gpu / intern / gpu_material.c
index 4d9fa54939c2ba85139c718f87c5f6bed7888955..67f30be6a12898088fde3f89d3b71597b8022981 100644 (file)
@@ -226,7 +226,9 @@ static int GPU_material_construct_end(GPUMaterial *material, const char *passnam
                GPUNodeLink *outlink = material->outlink;
                material->pass = GPU_generate_pass(&material->nodes, outlink,
                        &material->attribs, &material->builtins, material->type,
-                       passname, material->is_opensubdiv);
+                       passname,
+                       material->is_opensubdiv,
+                       GPU_material_use_new_shading_nodes(material));
 
                if (!material->pass)
                        return 0;