De-duplictae fix for lasso with Dalai

Git silently merged our both fixes together. Sure thing it's double safe this way, but cmon.
This commit is contained in:
Sergey Sharybin 2017-03-15 14:17:52 +01:00
parent d78b1147be
commit 6d71169478
1 changed files with 0 additions and 4 deletions

View File

@ -414,10 +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);
if (gt->points + (gt->type == WM_GESTURE_LASSO ? 1 : 0) < 2) {
return;
}
immBindBuiltinProgram(GPU_SHADER_2D_LINE_DASHED_COLOR);
immUniform4f("color1", 0.4f, 0.4f, 0.4f, 1.0f);