title: OpenGL. Updating vertex buffer with glBufferData
body: <p>I'm using <code>OpenGL</code> to implement some kind of batched drawing. For this I create a <code>vertex buffer</code> to store data. </p>
  
  <p>Note: this buffer generally will update on each frame, but will never decrease size (but still can increase).</p>
  
  <p>My question is: is it technically correct to use <code>glBufferData</code> (with s<code>treaming write-only mode</code>) for updating it (instead of e.g. <code>glMapBuffer</code>)? I suppose there's no need to map it, since full data is updated, so I just send a full pack at once. And if the current buffer size is less, than I'm sending, it will automatically increase, won't it? I'm just now sure about the way it really works (maybe it will recreate buffer on each call, no?).</p>