only draw points when there actually are linejoins

This commit is contained in:
Konstantin Käfer
2014-06-03 18:11:07 +02:00
parent 08fc466107
commit 2eb948115d

View File

@@ -353,7 +353,14 @@ bool LineBucket::hasData() const {
}
bool LineBucket::hasPoints() const {
return !pointGroups.empty();
if (!pointGroups.empty()) {
for (const point_group_type& group : pointGroups) {
if (group.elements_length) {
return true;
}
}
}
return false;
}
void LineBucket::drawLines(LineShader& shader) {