From 6701db773e660e5306e305a1b10f8ea52955f06b Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 12 Feb 2020 12:48:44 +0100 Subject: Cleanup: don't perform some GPU shader codegen operations twice --- source/blender/gpu/intern/gpu_material.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source/blender/gpu/intern/gpu_material.c') diff --git a/source/blender/gpu/intern/gpu_material.c b/source/blender/gpu/intern/gpu_material.c index 2f52aea2c91..d8d431e329a 100644 --- a/source/blender/gpu/intern/gpu_material.c +++ b/source/blender/gpu/intern/gpu_material.c @@ -690,10 +690,6 @@ GPUMaterial *GPU_material_from_nodetree(Scene *scene, "# define USE_SSS\n" "#endif\n"); } - /* Prune the unused nodes and extract attributes before compiling so the - * generated VBOs are ready to accept the future shader. */ - GPU_nodes_prune(&mat->nodes, mat->outlink); - GPU_nodes_get_vertex_attrs(&mat->nodes, &mat->attrs); /* Create source code and search pass cache for an already compiled version. */ mat->pass = GPU_generate_pass(mat, mat->outlink, -- cgit v1.2.3