fixed flag for gl2