Fix T104363: BLI_assert 'attr->comp_len == 3' failed in cage 2d gizmo

This commit is contained in:
RiverIntheSky
2023-02-05 21:21:30 +01:00
parent 3d6ceb737d
commit a094f30a74
@@ -592,7 +592,7 @@ static void cage2d_draw_rect_handles(const rctf *r,
static void cage2d_draw_central_handle(const float color[3], const float margin[2])
{
uint pos = GPU_vertformat_attr_add(immVertexFormat(), "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT);
uint pos = GPU_vertformat_attr_add(immVertexFormat(), "pos", GPU_COMP_F32, 3, GPU_FETCH_FLOAT);
const float rad[2] = {margin[0] * 0.25f, margin[1] * 0.25f};