diff options
author | Mike Erwin <significant.bit@gmail.com> | 2015-11-24 10:34:54 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2015-11-24 10:34:54 +0300 |
commit | ef5fff4adc2b0635c2bcc11fd982e3ef2cf8faf4 (patch) | |
tree | d6ea881a6ec060e5f423aa786e9ab7793b6110ff /source/blender/editors/gpencil | |
parent | 291afea8ccdea57d4b2a51f134e9f53deeff964e (diff) |
OpenGL: when checking GL version, assume >= 2.1
Mostly glBlendFunc related.
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r-- | source/blender/editors/gpencil/drawgpencil.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/source/blender/editors/gpencil/drawgpencil.c b/source/blender/editors/gpencil/drawgpencil.c index 6b71c0ac053..d17ed22b1ec 100644 --- a/source/blender/editors/gpencil/drawgpencil.c +++ b/source/blender/editors/gpencil/drawgpencil.c @@ -1111,13 +1111,7 @@ static void gp_draw_data(bGPdata *gpd, int offsx, int offsy, int winx, int winy, */ /* turn on alpha-blending */ - if (GLEW_VERSION_1_4) { - glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA); - } - else { - 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); /* draw! */ |