[Bf-blender-cvs] [7de1efd] master: Fix: Grease Pencil strokes rendered with blotched colours/alpha in OpenGL Playblasts

Joshua Leung noreply at git.blender.org
Tue Dec 2 07:13:56 CET 2014


Commit: 7de1efd2740884d6fc1a1f61ddccdc58b3132861
Author: Joshua Leung
Date:   Tue Dec 2 19:13:45 2014 +1300
Branches: master
https://developer.blender.org/rB7de1efd2740884d6fc1a1f61ddccdc58b3132861

Fix: Grease Pencil strokes rendered with blotched colours/alpha in OpenGL Playblasts

Thanks to an anonymous tip (or shall we say, a tip from "Anonymous" - thank you
whoever you are :) it is now possible to render out Grease Pencil shots from
the viewport with correct colours again! This has been broken for a few releases
now, so it's great that this works again now, completing the last part of the
pipeline again.

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

M	source/blender/editors/gpencil/drawgpencil.c

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

diff --git a/source/blender/editors/gpencil/drawgpencil.c b/source/blender/editors/gpencil/drawgpencil.c
index 245f22c..66a47a5 100644
--- a/source/blender/editors/gpencil/drawgpencil.c
+++ b/source/blender/editors/gpencil/drawgpencil.c
@@ -961,7 +961,7 @@ static void gp_draw_data(bGPdata *gpd, int offsx, int offsy, int winx, int winy,
 	glHint(GL_POLYGON_SMOOTH_HINT, GL_NICEST);
 	
 	/* turn on alpha-blending */
-	glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+	glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
 	glEnable(GL_BLEND);
 		
 	/* loop over layers, drawing them */




More information about the Bf-blender-cvs mailing list