From 4b45002f0a8f67b19d8a0213643cffad2e877be0 Mon Sep 17 00:00:00 2001 From: codeanticode Date: Sun, 15 Nov 2015 19:48:43 -0500 Subject: [PATCH] remove some obsolete code --- core/src/processing/opengl/PGraphicsOpenGL.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/src/processing/opengl/PGraphicsOpenGL.java b/core/src/processing/opengl/PGraphicsOpenGL.java index d7ac699c5..a4a660b9a 100644 --- a/core/src/processing/opengl/PGraphicsOpenGL.java +++ b/core/src/processing/opengl/PGraphicsOpenGL.java @@ -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); } }