diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-02-12 14:48:44 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-02-15 22:33:15 +0300 |
commit | 6701db773e660e5306e305a1b10f8ea52955f06b (patch) | |
tree | 398947496e7920d12dc8ec84bc8fb9f0cd5ad558 /source/blender/gpu/intern/gpu_material.c | |
parent | ab18dbb67e059ce1505189a14739e1e4deffacc1 (diff) |
Cleanup: don't perform some GPU shader codegen operations twice
Diffstat (limited to 'source/blender/gpu/intern/gpu_material.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_material.c | 4 |
1 files changed, 0 insertions, 4 deletions
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, |