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/interface | |
parent | c41e8b8f6f38b9f5a037e11b83b49c4481256716 (diff) |
GPU: State: Replace GL_BLEND by GPU_blend
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface_icons_event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_icons_event.c b/source/blender/editors/interface/interface_icons_event.c index 8cd60c69b62..2af9bbf9e88 100644 --- a/source/blender/editors/interface/interface_icons_event.c +++ b/source/blender/editors/interface/interface_icons_event.c @@ -127,7 +127,7 @@ static void icon_draw_rect_input_line_prim( const char lines[][2], int lines_len) { GPU_line_smooth(true); - glEnable(GL_BLEND); + GPU_blend(true); BLI_assert(ELEM(prim, GPU_PRIM_LINE_LOOP, GPU_PRIM_LINE_STRIP)); const uint pos_id = GPU_vertformat_attr_add(immVertexFormat(), "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT); immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR); @@ -145,7 +145,7 @@ static void icon_draw_rect_input_line_prim( immEnd(); immUnbindProgram(); GPU_line_smooth(false); - glDisable(GL_BLEND); + GPU_blend(false); } void icon_draw_rect_input( |