[Bf-blender-cvs] [3a4802c] blender-v2.75-release: Fix T45104: RGBA PNG Stereo 3d Anaglyph renders turn all shades of black into alpha in 2.75 RC1

Dalai Felinto noreply at git.blender.org
Fri Jun 19 13:58:54 CEST 2015


Commit: 3a4802ce25c55f2dc3b42fe25dd3596f4a8224cf
Author: Dalai Felinto
Date:   Thu Jun 18 13:56:11 2015 -0300
Branches: blender-v2.75-release
https://developer.blender.org/rB3a4802ce25c55f2dc3b42fe25dd3596f4a8224cf

Fix T45104: RGBA PNG Stereo 3d Anaglyph renders turn all shades of black into alpha in 2.75 RC1

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

M	source/blender/imbuf/intern/stereoimbuf.c

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

diff --git a/source/blender/imbuf/intern/stereoimbuf.c b/source/blender/imbuf/intern/stereoimbuf.c
index f1608f5..3b9da63 100644
--- a/source/blender/imbuf/intern/stereoimbuf.c
+++ b/source/blender/imbuf/intern/stereoimbuf.c
@@ -117,7 +117,7 @@ static void imb_stereo3d_write_anaglyph(Stereo3DData *s3d, enum eStereo3dAnaglyp
 					to[0] = from[r][0];
 					to[1] = from[g][1];
 					to[2] = from[b][2];
-					to[3] = MAX2(from[0][2], from[0][2]);
+					to[3] = MAX2(from[0][3], from[0][3]);
 				}
 			}
 		}
@@ -154,7 +154,7 @@ static void imb_stereo3d_write_anaglyph(Stereo3DData *s3d, enum eStereo3dAnaglyp
 					to[0] = from[r][0];
 					to[1] = from[g][1];
 					to[2] = from[b][2];
-					to[3] = MAX2(from[0][2], from[0][2]);
+					to[3] = MAX2(from[0][3], from[0][3]);
 				}
 			}
 		}




More information about the Bf-blender-cvs mailing list