Added GLHelper and error flushing to GLBuffer