diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-03-25 22:26:52 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-03-25 22:26:52 +0300 |
commit | c602ec74fdd20c17c9ca9c7eb59c048443efc2ce (patch) | |
tree | af55cc2a2da7c385db5a42735e2bbbdea7953e1f /source/blender/editors/gpencil/drawgpencil.c | |
parent | c41e8b8f6f38b9f5a037e11b83b49c4481256716 (diff) |
GPU: State: Replace GL_BLEND by GPU_blend
Diffstat (limited to 'source/blender/editors/gpencil/drawgpencil.c')
-rw-r--r-- | source/blender/editors/gpencil/drawgpencil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/gpencil/drawgpencil.c b/source/blender/editors/gpencil/drawgpencil.c index 8d642e82208..45498882160 100644 --- a/source/blender/editors/gpencil/drawgpencil.c +++ b/source/blender/editors/gpencil/drawgpencil.c @@ -1385,7 +1385,7 @@ void ED_gp_draw_interpolation(const bContext *C, tGPDinterpolate *tgpi, const in tgpw.dflag = dflag; /* turn on alpha-blending */ - glEnable(GL_BLEND); + GPU_blend(true); for (tgpil = tgpi->ilayers.first; tgpil; tgpil = tgpil->next) { /* calculate parent position */ ED_gpencil_parent_location(depsgraph, obact, tgpi->gpd, tgpil->gpl, tgpw.diff_mat); @@ -1403,7 +1403,7 @@ void ED_gp_draw_interpolation(const bContext *C, tGPDinterpolate *tgpi, const in gp_draw_strokes(&tgpw); } } - glDisable(GL_BLEND); + GPU_blend(false); } /* wrapper to draw strokes for filling operator */ |