Add wrapper for glDrawArrays to GL state machine