Merge "Issue #2804 Fixed non-managed indicies in GLGeometryObject2D" into development

Former-commit-id: 063d85ee22 [formerly 4778976c7175121841fc9ca69a814daf9d466c6c]
Former-commit-id: 30632fbd84
This commit is contained in:
Nate Jensen 2014-02-17 11:22:53 -06:00 committed by Gerrit Code Review
commit 0fe9842582

View file

@ -252,7 +252,10 @@ public class GLGeometryObject2D {
addToBuffer(coordBuffer, coordinate);
points += 1;
}
indicies.add(idx);
if (points != idx && data.manageIndicies
&& (data.geometryType != GL.GL_LINES || indicies.isEmpty())) {
indicies.add(idx);
}
}
public void allocate(int points) {