Call glFlush in AppActivate