Fix wrong argument in glBufferData, clean up API.