mirror of
https://github.com/processing/processing4.git
synced 2026-06-08 16:40:46 +02:00
Fixed index error in point tessellation
This commit is contained in:
@@ -7935,8 +7935,8 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
|
||||
tess.addPointVertices(nvertTot);
|
||||
tess.addPointIndices(nindTot);
|
||||
int vertIdx = 3 * tess.firstPointVertex;
|
||||
int attribIdx = 2 * tess.firstPointVertex;
|
||||
int vertIdx = tess.firstPointVertex;
|
||||
int attribIdx = tess.firstPointVertex;
|
||||
int indIdx = tess.firstPointIndex;
|
||||
int firstVert = tess.firstPointVertex;
|
||||
for (int i = in.firstVertex; i <= in.lastVertex; i++) {
|
||||
@@ -8002,8 +8002,8 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
|
||||
tess.addPointVertices(nvertTot);
|
||||
tess.addPointIndices(nindTot);
|
||||
int vertIdx = 3 * tess.firstPointVertex;
|
||||
int attribIdx = 2 * tess.firstPointVertex;
|
||||
int vertIdx = tess.firstPointVertex;
|
||||
int attribIdx = tess.firstPointVertex;
|
||||
int indIdx = tess.firstPointIndex;
|
||||
int firstVert = tess.firstPointVertex;
|
||||
for (int i = in.firstVertex; i <= in.lastVertex; i++) {
|
||||
|
||||
Reference in New Issue
Block a user