[1/2] d3dx9_36: D3DXDeclaratorFromFVF returns D3DERR_INVALIDCALL when an invalid declarator is passed.

Henri Verbeet hverbeet at gmail.com
Wed Sep 22 10:46:57 CDT 2010


On 22 September 2010 17:29, misha680 <misha680 at gmail.com> wrote:
> Right now I am thinking of a simple mask based approach, e.g., extending:
> d3d9types.h:#define D3DFVF_POSITION_MASK       0x400E
> d3d9types.h:#define D3DFVF_TEXCOUNT_MASK       0x0f00
> as well as other masks, and then doing a simple validation for flags that
> may be outside this mask, such as:
>
That basically comes down to testing for "fvf & (D3DFVF_RESERVED0 |
D3DFVF_RESERVED2)". In fact, that would also explain the results for
D3DFVF_XYZW, and make the explicit check for that redundant.



More information about the wine-devel mailing list