Issue #2804 Fixed non-managed indicies in GLGeometryObject2D
Change-Id: Iaf789050c28a94747e182150a2fcabb36f8b99cc Former-commit-id: e0a5ec0a713f06eab93d86671a43334110b60b0c
This commit is contained in:
parent
c8e93190f2
commit
6a2a33abe1
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