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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-10-07 11:38:22 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-07 11:38:22 +0400
commit7748133bf2d0a99f37b2a0b0ce438b6726db36fa (patch)
treeb6d032727bfc569f4f2fad666f6039459cf94fe0 /source
parent1a9f930514719eee65609d7499bd184147580b55 (diff)
code cleanup: glare stream operation was setting alpha array twice.
Diffstat (limited to 'source')
-rw-r--r--source/blender/compositor/operations/COM_GlareStreaksOperation.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/compositor/operations/COM_GlareStreaksOperation.cpp b/source/blender/compositor/operations/COM_GlareStreaksOperation.cpp
index 9125783c222..60d37fb8145 100644
--- a/source/blender/compositor/operations/COM_GlareStreaksOperation.cpp
+++ b/source/blender/compositor/operations/COM_GlareStreaksOperation.cpp
@@ -81,11 +81,9 @@ void GlareStreaksOperation::generateGlare(float *data, MemoryBuffer *inputTile,
float *sourcebuffer = tsrc->getBuffer();
float factor = 1.f / (float)(6 - settings->iter);
- for (int i = 0; i < size4; i++) {
- data[i] += sourcebuffer[i] * factor;
- }
- for (int i = 0; i < size; i++) {
- data[i * 4 + 3] = 1.0f;
+ for (int i = 0; i < size4; i += 4) {
+ madd_v3_v3fl(&data[i], &sourcebuffer[i], factor);
+ data[i + 3] = 1.0f;
}
tdst->clear();