flush drawing and gl