size is not a parameter of glClearBufferData

It was probably left around because they copied glClearBufferSubData.