mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Fixed issue 368
This commit is contained in:
@@ -952,6 +952,7 @@ public class PGraphics extends PImage implements PConstants {
|
||||
|
||||
vertex[X] = x;
|
||||
vertex[Y] = y;
|
||||
vertex[Z] = 0;
|
||||
|
||||
vertex[EDGE] = edge ? 1 : 0;
|
||||
|
||||
|
||||
@@ -2024,8 +2024,7 @@ public class PGraphicsAndroid3D extends PGraphics {
|
||||
}
|
||||
|
||||
// Division by three needed because each int element in the buffer is used
|
||||
// to
|
||||
// store three coordinates.
|
||||
// to store three coordinates.
|
||||
if (vertexBuffer.capacity() / 3 < 3 * faceLength[j]) {
|
||||
expandBuffers();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user