public int glid(GL2 gl) { if ((gls != null) && (gls.gl != gl)) { gls.dispose(); gls = null; } if (gls == null) gls = create(gl); return (gls.id); }