diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-04-16 13:52:25 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-04-16 13:52:25 +0400 |
commit | 4d1c7992d7855f7931524d873154cbc1b8b8ae28 (patch) | |
tree | 6b9b809bed881837a0ca682dc895cf6b10a5b246 /intern | |
parent | 4ebcae7158f2bdbb9bfdbac8c53801ba70d6fc90 (diff) |
Fix/tweak for cycles border render, it wasn't generating the exact same samples
when rendering a subset instead of the whole, mostly useful for debugging.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/render/buffers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/buffers.cpp b/intern/cycles/render/buffers.cpp index 62a322b3a0f..bda20a8ab9d 100644 --- a/intern/cycles/render/buffers.cpp +++ b/intern/cycles/render/buffers.cpp @@ -119,7 +119,7 @@ void RenderBuffers::reset(Device *device, BufferParams& params_) for(x=0; x<width; x++) for(y=0; y<height; y++) - init_state[x + y*width] = hash_int_2d(x, y); + init_state[x + y*width] = hash_int_2d(params.full_x+x, params.full_y+y); device->mem_alloc(rng_state, MEM_READ_WRITE); device->mem_copy_to(rng_state); |