mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
no need to initialize line and point buffers in 2D
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user