Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-07-14 17:19:57 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-07-14 17:19:57 +0400
commit08dc76b1ecfbfea4e35b7225b2288c5956081327 (patch)
tree9058c5632181c4c109d1a94625b018376c662974 /intern/cycles/render/light.cpp
parent83a172e40c50c630b7bdd58b0b4a24a1f4284bfa (diff)
Fix a few issues found by coverity code scan in cycles code, nothing that caused
an actual bug as far as I can tell.
Diffstat (limited to 'intern/cycles/render/light.cpp')
-rw-r--r--intern/cycles/render/light.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/render/light.cpp b/intern/cycles/render/light.cpp
index 276647e6b2f..8b831c25d28 100644
--- a/intern/cycles/render/light.cpp
+++ b/intern/cycles/render/light.cpp
@@ -53,7 +53,7 @@ static void shade_background_pixels(Device *device, DeviceScene *dscene, int res
}
/* compute on device */
- float4 *d_output_data = d_output.resize(width*height);
+ d_output.resize(width*height);
memset((void*)d_output.data_pointer, 0, d_output.memory_size());
device->const_copy_to("__data", &dscene->data, sizeof(dscene->data));
@@ -82,7 +82,7 @@ static void shade_background_pixels(Device *device, DeviceScene *dscene, int res
device->mem_free(d_input);
device->mem_free(d_output);
- d_output_data = reinterpret_cast<float4*>(d_output.data_pointer);
+ float4 *d_output_data = reinterpret_cast<float4*>(d_output.data_pointer);
pixels.resize(width*height);