[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: d3d9: Use the correct size for D3DFVF_XYZW [try 2]
From:       "Henri Verbeet" <hverbeet () gmail ! com>
Date:       2008-12-30 18:48:36
Message-ID: d658b69e0812301048o16fb3fd9v5b76c20c0fbefe3b () mail ! gmail ! com
[Download RAW message or body]

2008/12/30 Stefan Dösinger <stefan@codeweavers.com>:
> we have a similar, but not quite the same, routine in wined3d too, I think
> in device.c. It creates a wined3d vertex declaration from a FVF, while the
> d3d9 one creates a d3d9 declaration. Can you see if the wined3d routine is
> affected too?
>
That's commit f197e8b1ca0662c32444741112b27cc98038e2ba.

> I didn't unify the wined3d and d3d9 code because we'd need need some
> wined3d->d3d9 decl backwards conversion which is probably as bug prone and
> maintainance heavy as an almost-clone of the FVF->decl conversion routine,
> and I dislike the idea of creating a d3d9 decl in wined3d. If anyone has a
> nice solution for this feel free to suggest it.
>
ConvertFvfToDeclaration() returns an array of WINED3DVERTEXELEMENT.
Converting from WINED3DVERTEXELEMENT to D3DVERTEXELEMENT is trivial.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic