public static void setBoundVBO(final RendererRecord rendRecord, final int id) { if (!rendRecord.isVboValid() || rendRecord.getCurrentVboId() != id) { ARBBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, id); rendRecord.setCurrentVboId(id); rendRecord.setVboValid(true); } }
public static void setBoundVBO(final RendererRecord rendRecord, final int id) { final GL gl = GLContext.getCurrentGL(); if (!rendRecord.isVboValid() || rendRecord.getCurrentVboId() != id) { gl.glBindBuffer(GL.GL_ARRAY_BUFFER, id); rendRecord.setCurrentVboId(id); rendRecord.setVboValid(true); } }