From 7de1efd2740884d6fc1a1f61ddccdc58b3132861 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Tue, 2 Dec 2014 19:13:45 +1300 Subject: 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. --- source/blender/editors/gpencil/drawgpencil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/editors/gpencil/drawgpencil.c b/source/blender/editors/gpencil/drawgpencil.c index 245f22cad1c..66a47a578e8 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 */ -- cgit v1.2.3