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-12 15:31:35 +0300 |
commit | 618b3480c84500bc3a6bda2320c206000a80556e (patch) | |
tree | c37f1854310b0cee5f0fb6f66e3e23981f49537c /intern | |
parent | d1131227c54d1ae5c410d8f23ffe3a4770afc67d (diff) |
Cycles: Cleanup, remove duplicated code
Diffstat (limited to 'intern')
-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; |