Fix BLI_assert 'attr->comp_len == 2' failed in cage 2d gizmo
This commit is contained in:
@@ -629,7 +629,7 @@ static void cage2d_draw_rect_edge_handles(const rctf *r,
|
||||
const float color[3],
|
||||
bool solid)
|
||||
{
|
||||
uint pos = GPU_vertformat_attr_add(immVertexFormat(), "pos", GPU_COMP_F32, 3, GPU_FETCH_FLOAT);
|
||||
uint pos = GPU_vertformat_attr_add(immVertexFormat(), "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT);
|
||||
|
||||
immBindBuiltinProgram(GPU_SHADER_3D_UNIFORM_COLOR);
|
||||
immUniformColor3fv(color);
|
||||
|
Reference in New Issue
Block a user