diff --git a/core/src/processing/opengl/PShapeOpenGL.java b/core/src/processing/opengl/PShapeOpenGL.java index daca73bdc..8d4076b4e 100644 --- a/core/src/processing/opengl/PShapeOpenGL.java +++ b/core/src/processing/opengl/PShapeOpenGL.java @@ -4605,12 +4605,14 @@ public class PShapeOpenGL extends PShape { initPolyBuffers(); } - if (hasLines && (needBufferInit || outdated)) { - initLineBuffers(); - } + if (is3D()) { + if (hasLines && (needBufferInit || outdated)) { + initLineBuffers(); + } - if (hasPoints && (needBufferInit || outdated)) { - initPointBuffers(); + if (hasPoints && (needBufferInit || outdated)) { + initPointBuffers(); + } } needBufferInit = false;