Use glDrawArrays instead of glBegin