[Bf-blender-cvs] [a1e01fd] master: 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
Thu Jun 18 19:04:01 CEST 2015


Commit: a1e01fda248a9f43e44770e26efee4fc68889932
Author: Dalai Felinto
Date:   Thu Jun 18 13:56:11 2015 -0300
Branches: master
https://developer.blender.org/rBa1e01fda248a9f43e44770e26efee4fc68889932

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