Both patches work very well (they passed the todo_wine tests)
But, I think that  the second one does not answer to Julliard 's complain about tons of if...then
Or maybe there is no way to simplify the patch

David


De : Henri Verbeet <hverbeet@gmail.com>
À : paulo lesgaz <jeremielapuree@yahoo.fr>
Cc : wine-devel@winehq.org
Envoyé le : Lun 23 août 2010, 14h 01min 01s
Objet : Re: Re : d3dx9: Implement D3DXDeclaratorFromFVF.

On 23 August 2010 13:49, paulo lesgaz <jeremielapuree@yahoo.fr> wrote:
> I already sent such a patch. Julliard did not like the gazillions of
> conditions if.... then.
> I  never found a way to avoid them.
> The offset can be computed thanks to the function  D3DXGetDeclVertexSize
>
You know, just give the attached patches a try. Untested, of course.