[Bf-blender-cvs] [7997a36] blender-tiles: Modified NUMBER_OF_CHANNELS

Monique Dewanchand noreply at git.blender.org
Thu Jul 31 22:12:33 CEST 2014


Commit: 7997a36acff3ef5676219309f70cd7167e79df9b
Author: Monique Dewanchand
Date:   Thu Jul 31 22:10:02 2014 +0200
Branches: blender-tiles
https://developer.blender.org/rB7997a36acff3ef5676219309f70cd7167e79df9b

Modified NUMBER_OF_CHANNELS

===================================================================

M	source/blender/compositor/operations/COM_SunBeamsOperation.cpp

===================================================================

diff --git a/source/blender/compositor/operations/COM_SunBeamsOperation.cpp b/source/blender/compositor/operations/COM_SunBeamsOperation.cpp
index a267a1f..cdfdeae 100644
--- a/source/blender/compositor/operations/COM_SunBeamsOperation.cpp
+++ b/source/blender/compositor/operations/COM_SunBeamsOperation.cpp
@@ -113,7 +113,7 @@ struct BufferLineAccumulator {
 
 		num = (int)ceilf(umin) - max_ii((int)floorf(umax), 1);
 
-		float *iter = input->getBuffer() + COM_NUMBER_OF_CHANNELS * (x + input->getWidth() * y);
+		float *iter = input->getBuffer() + COM_NUM_CHANNELS_COLOR * (x + input->getWidth() * y);
 		return iter;
 	}
 
@@ -163,7 +163,7 @@ struct BufferLineAccumulator {
 			/* decrement u */
 			x -= fxx;
 			y -= fyx;
-			buffer -= (fxx + fyx * buffer_width) * COM_NUMBER_OF_CHANNELS;
+			buffer -= (fxx + fyx * buffer_width) * COM_NUM_CHANNELS_COLOR;
 
 			/* decrement v (in steps of dv < 1) */
 			v_local -= dv;
@@ -172,7 +172,7 @@ struct BufferLineAccumulator {
 
 				x -= fxy;
 				y -= fyy;
-				buffer -= (fxy + fyy * buffer_width) * COM_NUMBER_OF_CHANNELS;
+				buffer -= (fxy + fyy * buffer_width) * COM_NUM_CHANNELS_COLOR;
 			}
 		}




More information about the Bf-blender-cvs mailing list