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 here http://www.opengl.org/sdk/docs/man/xhtml/glBufferData.xmldescription of glBufferData
, it says it is acceptable to pass NULLNULL
as a datadata
parameter, but it mentions nothing of the sizesize
parameter.