flush drawing and gl
Merge pull request #2 from dannydulai/master

flush gl