OpenGL / Outliner: QUADS are not supported in core
This commit is contained in:
@@ -1554,9 +1554,9 @@ static void outliner_draw_tree_element_floating(
|
|||||||
BLI_assert(te_floating->drag_data->insert_type == TE_INSERT_INTO);
|
BLI_assert(te_floating->drag_data->insert_type == TE_INSERT_INTO);
|
||||||
immUniformColor4ub(UNPACK3(col), col[3] * 0.5f);
|
immUniformColor4ub(UNPACK3(col), col[3] * 0.5f);
|
||||||
|
|
||||||
immBegin(PRIM_QUADS, 4);
|
immBegin(PRIM_TRIANGLE_STRIP, 4);
|
||||||
immVertex2f(pos, coord_x, coord_y);
|
|
||||||
immVertex2f(pos, coord_x, coord_y + UI_UNIT_Y);
|
immVertex2f(pos, coord_x, coord_y + UI_UNIT_Y);
|
||||||
|
immVertex2f(pos, coord_x, coord_y);
|
||||||
immVertex2f(pos, ar->v2d.cur.xmax, coord_y + UI_UNIT_Y);
|
immVertex2f(pos, ar->v2d.cur.xmax, coord_y + UI_UNIT_Y);
|
||||||
immVertex2f(pos, ar->v2d.cur.xmax, coord_y);
|
immVertex2f(pos, ar->v2d.cur.xmax, coord_y);
|
||||||
immEnd();
|
immEnd();
|
||||||
|
Reference in New Issue
Block a user