diff options
Diffstat (limited to 'intern/cycles/render')
-rw-r--r-- | intern/cycles/render/bake.cpp | 1 | ||||
-rw-r--r-- | intern/cycles/render/light.cpp | 1 | ||||
-rw-r--r-- | intern/cycles/render/mesh_displace.cpp | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/render/bake.cpp b/intern/cycles/render/bake.cpp index c0fcd517390..2bedf3668f7 100644 --- a/intern/cycles/render/bake.cpp +++ b/intern/cycles/render/bake.cpp @@ -174,6 +174,7 @@ bool BakeManager::bake(Device *device, DeviceScene *dscene, Scene *scene, Progre device->mem_alloc("bake_input", d_input, MEM_READ_ONLY); device->mem_copy_to(d_input); device->mem_alloc("bake_output", d_output, MEM_READ_WRITE); + device->mem_zero(d_output); DeviceTask task(DeviceTask::SHADER); task.shader_input = d_input.device_pointer; diff --git a/intern/cycles/render/light.cpp b/intern/cycles/render/light.cpp index 4adc00bc839..6a7f985b756 100644 --- a/intern/cycles/render/light.cpp +++ b/intern/cycles/render/light.cpp @@ -60,6 +60,7 @@ static void shade_background_pixels(Device *device, DeviceScene *dscene, int res device->mem_alloc("shade_background_pixels_input", d_input, MEM_READ_ONLY); device->mem_copy_to(d_input); device->mem_alloc("shade_background_pixels_output", d_output, MEM_WRITE_ONLY); + device->mem_zero(d_output); DeviceTask main_task(DeviceTask::SHADER); main_task.shader_input = d_input.device_pointer; diff --git a/intern/cycles/render/mesh_displace.cpp b/intern/cycles/render/mesh_displace.cpp index 4ca20cf7ef3..350a56bf185 100644 --- a/intern/cycles/render/mesh_displace.cpp +++ b/intern/cycles/render/mesh_displace.cpp @@ -124,6 +124,7 @@ bool MeshManager::displace(Device *device, DeviceScene *dscene, Scene *scene, Me device->mem_alloc("displace_input", d_input, MEM_READ_ONLY); device->mem_copy_to(d_input); device->mem_alloc("displace_output", d_output, MEM_WRITE_ONLY); + device->mem_zero(d_output); DeviceTask task(DeviceTask::SHADER); task.shader_input = d_input.device_pointer; |