Replace glFlush by glFinish... Test purpose.