d3dx9: Implementation of D3DXGetFVFVertexSize

H. Verbeet hverbeet at gmail.com
Sun Apr 6 08:12:40 CDT 2008

On 06/04/2008, Luis Busquets <luis.busquets at ilidium.com> wrote:
> Implementation of D3DXGetFVFVertexSize. It does so by calculating all the
> different publicly available posible vertex configuration types.

>+  switch (FVF & D3DFVF_XYZB5) {
You should probably use D3DFVF_POSITION_MASK instead here.

>+  for (i=0;i<((FVF&0x0f00) >> 16);i++) {
This doesn't look right. Right shifting (FVF & 0x0f00) by 16 will
always produce 0. Tests should have caught that.

More information about the wine-devel mailing list