diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-03-24 01:54:01 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-03-24 01:54:01 +0300 |
commit | 72c323d50c290a91414a3363647f45b5444c4e66 (patch) | |
tree | d9257b5f01f2b4dbdb62651bc2f4539f415848b6 /source/blender/editors/interface | |
parent | 53cd37d5102bc68da686e742b73aff023a4880b4 (diff) |
GPU: State: Replace GL_LINE_SMOOTH by GPU_line_smooth
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 e77b47d19e5..8cd60c69b62 100644 --- a/source/blender/editors/interface/interface_icons_event.c +++ b/source/blender/editors/interface/interface_icons_event.c @@ -126,7 +126,7 @@ static void icon_draw_rect_input_line_prim( const int prim, const char lines[][2], int lines_len) { - glEnable(GL_LINE_SMOOTH); + GPU_line_smooth(true); glEnable(GL_BLEND); 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); @@ -144,7 +144,7 @@ static void icon_draw_rect_input_line_prim( } immEnd(); immUnbindProgram(); - glDisable(GL_LINE_SMOOTH); + GPU_line_smooth(false); glDisable(GL_BLEND); } |