public static void checkerr(GL gl) { int err = gl.glGetError(); if (err != 0) throw (glexcfor(err)); }