+ avoid creating two coincident vertices (needs more testing)
This commit is contained in:
parent
b50330c40e
commit
8b757a1c7e
1 changed files with 50 additions and 49 deletions
5
deps/agg/include/agg_clip_liang_barsky.h
vendored
5
deps/agg/include/agg_clip_liang_barsky.h
vendored
|
@ -200,14 +200,15 @@ namespace agg
|
|||
*x++ = (T)(x1 + touty * deltax);
|
||||
*y++ = (T)yout;
|
||||
}
|
||||
++np;
|
||||
}
|
||||
else
|
||||
else if(*x != x2 && *y != y2)
|
||||
{
|
||||
*x++ = x2;
|
||||
*y++ = y2;
|
||||
}
|
||||
++np;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(tinx > tiny)
|
||||
|
|
Loading…
Add table
Reference in a new issue