diff options
author | Joshua Leung <aligorith@gmail.com> | 2014-12-02 09:13:45 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2014-12-02 09:13:45 +0300 |
commit | 7de1efd2740884d6fc1a1f61ddccdc58b3132861 (patch) | |
tree | 1754bb5794c1098f6524e810d924800b45ee4607 | |
parent | 367204a0630403bf08b926df86757887d629cb05 (diff) |
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.
-rw-r--r-- | source/blender/editors/gpencil/drawgpencil.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |