diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-01-12 15:31:35 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-01-20 13:26:20 +0300 |
commit | 3cb13988991cd1de4a19c21a5b5497b6996970f1 (patch) | |
tree | b599678c6181163a2c9042fc907c0838f580337b /intern/cycles | |
parent | 0fdb16ec4d63d09486a56287c5ae52b663662088 (diff) |
Cycles: Cleanup, remove duplicated code
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/render/buffers.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/intern/cycles/render/buffers.cpp b/intern/cycles/render/buffers.cpp index cb20e811708..5030de69174 100644 --- a/intern/cycles/render/buffers.cpp +++ b/intern/cycles/render/buffers.cpp @@ -185,13 +185,9 @@ bool RenderBuffers::get_pass_rect(PassType type, float exposure, int sample, int } } #ifdef WITH_CYCLES_DEBUG - else if(type == PASS_BVH_TRAVERSAL_STEPS) { - for(int i = 0; i < size; i++, in += pass_stride, pixels++) { - float f = *in; - pixels[0] = f*scale; - } - } - else if(type == PASS_RAY_BOUNCES) { + else if(type == PASS_BVH_TRAVERSAL_STEPS || + type == PASS_RAY_BOUNCES) + { for(int i = 0; i < size; i++, in += pass_stride, pixels++) { float f = *in; pixels[0] = f*scale; |