On 06/04/2008, Luis Busquets luis.busquets@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.