Re: [1/2] d3dx9: Implemented non-equal declaration support in CloneMesh.

2011-10-24 Thread Matteo Bruni
2011/10/24 Michael Mc Donnell : > On Mon, Oct 24, 2011 at 9:13 AM, Matteo Bruni > wrote: >> Hi Michael, >> >> +    for (i = 0; declaration1[i].Stream != 0xff; i++) >> +    { >> +        if (memcmp(&declaration1[i], &declaration2[i], >> sizeof(*declaration1))) >> >> Doesn't that loop need to stop

Re: [1/2] d3dx9: Implemented non-equal declaration support in CloneMesh.

2011-10-24 Thread Michael Mc Donnell
On Mon, Oct 24, 2011 at 9:13 AM, Matteo Bruni wrote: > Hi Michael, > > +    for (i = 0; declaration1[i].Stream != 0xff; i++) > +    { > +        if (memcmp(&declaration1[i], &declaration2[i], > sizeof(*declaration1))) > > Doesn't that loop need to stop at the first end marker of either > declarat

Re: [1/2] d3dx9: Implemented non-equal declaration support in CloneMesh.

2011-10-24 Thread Matteo Bruni
Hi Michael, +for (i = 0; declaration1[i].Stream != 0xff; i++) +{ +if (memcmp(&declaration1[i], &declaration2[i], sizeof(*declaration1))) Doesn't that loop need to stop at the first end marker of either declaration? I.e. may the first vertex declaration be longer than the second on