Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/interface/interface_icons_event.c')
-rw-r--r--source/blender/editors/interface/interface_icons_event.c4
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(