Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2020-02-12 14:48:44 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2020-02-15 22:33:15 +0300
commit6701db773e660e5306e305a1b10f8ea52955f06b (patch)
tree398947496e7920d12dc8ec84bc8fb9f0cd5ad558 /source/blender/gpu/intern/gpu_material.c
parentab18dbb67e059ce1505189a14739e1e4deffacc1 (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.c4
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,