diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-03-05 01:13:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-03-05 01:13:16 +0300 |
commit | fea07c1a63fdfe3bf25d77d862e83bdf024347b8 (patch) | |
tree | a859d2c511c53f5653a23d6992165aa6a5ddece7 /source/blender/compositor/operations/COM_GlareGhostOperation.cpp | |
parent | acebfbb6669b4f0c546068777c7f11146aad3def (diff) |
Cleanup: unnecessary comma use
Also use SWAP macro
Diffstat (limited to 'source/blender/compositor/operations/COM_GlareGhostOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_GlareGhostOperation.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/compositor/operations/COM_GlareGhostOperation.cpp b/source/blender/compositor/operations/COM_GlareGhostOperation.cpp index 9bef5ac0ed9..1c515f89d4f 100644 --- a/source/blender/compositor/operations/COM_GlareGhostOperation.cpp +++ b/source/blender/compositor/operations/COM_GlareGhostOperation.cpp @@ -82,11 +82,13 @@ void GlareGhostOperation::generateGlare(float *data, MemoryBuffer *inputTile, No v = ((float)y + 0.5f) / (float)gbuf->getHeight(); for (x = 0; x < gbuf->getWidth(); x++) { u = ((float)x + 0.5f) / (float)gbuf->getWidth(); - s = (u - 0.5f) * sc + 0.5f, t = (v - 0.5f) * sc + 0.5f; + s = (u - 0.5f) * sc + 0.5f; + t = (v - 0.5f) * sc + 0.5f; tbuf1->readBilinear(c, s * gbuf->getWidth(), t * gbuf->getHeight()); sm = smoothMask(s, t); mul_v3_fl(c, sm); - s = (u - 0.5f) * isc + 0.5f, t = (v - 0.5f) * isc + 0.5f; + s = (u - 0.5f) * isc + 0.5f; + t = (v - 0.5f) * isc + 0.5f; tbuf2->readBilinear(tc, s * gbuf->getWidth() - 0.5f, t * gbuf->getHeight() - 0.5f); sm = smoothMask(s, t); madd_v3_v3fl(c, tc, sm); |