Remove getGLError plus some misc changes.