Revert own previous commit, the bug is already fixed a fiew commits before. Sorry for the noise.
This commit is contained in:
parent
0b9041905f
commit
f98d9baea9
|
@ -414,14 +414,6 @@ static void wm_gesture_draw_lasso(wmWindow *win, wmGesture *gt, bool filled)
|
|||
unsigned pos = add_attrib(format, "pos", COMP_F32, 2, KEEP_FLOAT);
|
||||
unsigned line_origin = add_attrib(format, "line_origin", COMP_F32, 2, KEEP_FLOAT);
|
||||
|
||||
numverts = gt->points;
|
||||
if (gt->type == WM_GESTURE_LASSO) {
|
||||
numverts++;
|
||||
}
|
||||
|
||||
if (numverts <= 1)
|
||||
return;
|
||||
|
||||
immBindBuiltinProgram(GPU_SHADER_2D_LINE_DASHED_COLOR);
|
||||
|
||||
immUniform4f("color1", 0.4f, 0.4f, 0.4f, 1.0f);
|
||||
|
|
Loading…
Reference in New Issue