Address review comments and add glFlushMappedBufferRange.