diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-12-16 13:37:32 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-12-16 13:37:32 +0400 |
commit | 176292067eaa5b56c8bdee3d58890f01007bd479 (patch) | |
tree | cbe0363f4dce259aaf5d48df2843acbd109c6134 /intern/cycles/kernel/osl/osl_shader.cpp | |
parent | e114459ba36276aed5f3e04d99e7c8556a3e206b (diff) |
Cycles OSL: small optimization to geometry node, tangent output still was
not properly optimized out in some cases.
For reference, setting this will give detailed information about OSL shaders:
export OSL_OPTIONS="statistics:level=1,debug=1,llvm_debug=1"
Diffstat (limited to 'intern/cycles/kernel/osl/osl_shader.cpp')
-rw-r--r-- | intern/cycles/kernel/osl/osl_shader.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/intern/cycles/kernel/osl/osl_shader.cpp b/intern/cycles/kernel/osl/osl_shader.cpp index f5c04b6755e..3ff032374fc 100644 --- a/intern/cycles/kernel/osl/osl_shader.cpp +++ b/intern/cycles/kernel/osl/osl_shader.cpp @@ -172,9 +172,6 @@ static void flatten_surface_closure_tree(ShaderData *sd, bool no_glossy, break; } case OSL::ClosurePrimitive::Emissive: { - if (sd->num_closure == MAX_CLOSURE) - return; - /* sample weight */ float sample_weight = fabsf(average(weight)); |