glx: move the glFlush call one layer down