[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54631] trunk/blender/source/blender/ editors/render/render_opengl.c: Fix #34276: OpenGL render not doing color space conversion to linear correctly

Brecht Van Lommel brechtvanlommel at pandora.be
Mon Feb 18 15:03:50 CET 2013


Revision: 54631
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54631
Author:   blendix
Date:     2013-02-18 14:03:50 +0000 (Mon, 18 Feb 2013)
Log Message:
-----------
Fix #34276: OpenGL render not doing color space conversion to linear correctly
with transparency, would show as too dark colors on edges.

Found a strange issue here though, the alpha value in the OpenGL render result
is not the same as the one specified in the material. It's not clear to me why
this happens, color space conversions should not influence the alpha channel.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/render/render_opengl.c

Modified: trunk/blender/source/blender/editors/render/render_opengl.c
===================================================================
--- trunk/blender/source/blender/editors/render/render_opengl.c	2013-02-18 14:03:26 UTC (rev 54630)
+++ trunk/blender/source/blender/editors/render/render_opengl.c	2013-02-18 14:03:50 UTC (rev 54631)
@@ -264,7 +264,7 @@
 		/* sequencer has got tricker ocnversion happened above */
 
 		IMB_buffer_float_from_float(rr->rectf, rr->rectf,
-		                            4, IB_PROFILE_LINEAR_RGB, IB_PROFILE_SRGB, FALSE,
+		                            4, IB_PROFILE_LINEAR_RGB, IB_PROFILE_SRGB, TRUE,
 		                            oglrender->sizex, oglrender->sizey, oglrender->sizex, oglrender->sizex);
 	}
 




More information about the Bf-blender-cvs mailing list