GPU: State: Replace GL_BLEND by GPU_blend
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user