mirror of
https://github.com/processing/processing4.git
synced 2026-05-31 04:28:06 +02:00
Merge pull request #2915 from JakubValtar/bugfix-pshape-points
Fixed drawing 2D points to PShape
This commit is contained in:
@@ -10064,6 +10064,7 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
IndexCache cache = tess.polyIndexCache;
|
||||
int index = in.renderMode == RETAINED ? cache.addNew() : cache.getLast();
|
||||
firstPointIndexCache = index;
|
||||
if (firstPolyIndexCache == -1) firstPolyIndexCache = index; // If the geometry has no fill, needs the first poly index.
|
||||
for (int i = 0; i < in.vertexCount; i++) {
|
||||
int count = cache.vertexCount[index];
|
||||
if (PGL.MAX_VERTEX_INDEX1 <= count + nPtVert) {
|
||||
@@ -10192,6 +10193,7 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
IndexCache cache = tess.polyIndexCache;
|
||||
int index = in.renderMode == RETAINED ? cache.addNew() : cache.getLast();
|
||||
firstPointIndexCache = index;
|
||||
if (firstPolyIndexCache == -1) firstPolyIndexCache = index; // If the geometry has no fill, needs the first poly index.
|
||||
for (int i = 0; i < in.vertexCount; i++) {
|
||||
int nvert = 5;
|
||||
int count = cache.vertexCount[index];
|
||||
|
||||
Reference in New Issue
Block a user