Correct me if I am wrong, but if you call "glBufferData(...)" upon an existing buffer, it will resize the buffer to whatever data you upload.
Does that mean if I call something like
glBufferData(GL_ARRAY_BUFFER, 0, NULL, GL_DYNAMIC_DRAW);
it will keep the buffer in existence, but it will have size and no data?
In the description of glBufferData
, it says it is acceptable to pass NULL
as a data
parameter, but it mentions nothing of the size
parameter.