mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
remove some obsolete code
This commit is contained in:
@@ -7206,21 +7206,13 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
}
|
||||
|
||||
void createBuffer(PGL pgl) {
|
||||
// int ctx = pgl.getCurrentContext();
|
||||
buf = new VertexBuffer(pg, PGL.ARRAY_BUFFER, size, elementSize, false);
|
||||
//
|
||||
// glName = createVertexBufferObject(ctx, pgl);
|
||||
// pgl.bindBuffer(PGL.ARRAY_BUFFER, glName);
|
||||
// pgl.bufferData(PGL.ARRAY_BUFFER, size * INIT_VERTEX_BUFFER_SIZE * elementSize,
|
||||
// null, PGL.STATIC_DRAW);
|
||||
}
|
||||
|
||||
void deleteBuffer(PGL pgl) {
|
||||
if (buf.glId != 0) {
|
||||
// int ctx = pgl.getCurrentContext();
|
||||
intBuffer.put(0, buf.glId);
|
||||
if (pgl.threadIsCurrent()) pgl.deleteBuffers(1, intBuffer);
|
||||
// PGraphicsOpenGL.deleteVertexBufferObject(buf.glId, ctx, pgl);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user