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>2018-07-05 18:20:44 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-07-05 18:51:58 +0300
commitd8223468fe445797a300dd5cd97fe49f74ca6128 (patch)
tree548fb73d34747e189e574538514b38bbab2e4606 /source/blender/gpu/intern/gpu_material.c
parentc974a359531733e02adcd7366d684291b257affa (diff)
GPU: avoid unnecessary multiple nodetree localize and output finding.
Diffstat (limited to 'source/blender/gpu/intern/gpu_material.c')
-rw-r--r--source/blender/gpu/intern/gpu_material.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_material.c b/source/blender/gpu/intern/gpu_material.c
index 9c776e64ba0..c224e3e0e32 100644
--- a/source/blender/gpu/intern/gpu_material.c
+++ b/source/blender/gpu/intern/gpu_material.c
@@ -644,8 +644,7 @@ GPUMaterial *GPU_material_from_nodetree(
mat->engine_type = engine_type;
mat->options = options;
- ntreeGPUMaterialNodes(ntree, mat, NODE_NEW_SHADING | NODE_NEWER_SHADING);
- ntreeGPUMaterialDomain(ntree, &has_surface_output, &has_volume_output);
+ ntreeGPUMaterialNodes(ntree, mat, &has_surface_output, &has_volume_output);
if (has_surface_output) {
mat->domain |= GPU_DOMAIN_SURFACE;