Return immediately instead of failing to clip polygons to the z0 tile

This commit is contained in:
Eric Fischer 2014-10-15 16:34:49 -07:00
parent 43b27e2dfd
commit 8fec4ef9fc

View File

@ -477,6 +477,10 @@ static drawvec clip_poly1(drawvec &geom, int z, int detail) {
}
drawvec clip_poly(drawvec &geom, int z, int detail) {
if (z == 0) {
return geom;
}
drawvec out;
for (unsigned i = 0; i < geom.size(); i++) {