You cannot pass a vector as argument to a function.
Actually, you can, but the function always accepts it as a pointer (to the first element), regardless of whether you write (float *data
) or (float data[]
).
Pass the size as a separate argument, using sizeof(verts)/sizeof(verts[0])
.