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:
commit
0fe9842582
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue