ddraw: ProcessVertices correction.

Use the texture index to get the texcoord size from the fvf, not the
vertex index.
This commit is contained in:
Stefan Dösinger 2006-02-11 20:30:13 +01:00 committed by Alexandre Julliard
parent 368dab37ec
commit 531c487807
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ process_vertices_strided(IDirect3DVertexBufferImpl *This,
D3DVALUE *tex_coord =
(D3DVALUE *) (((char *) lpStrideData->textureCoords[tex_index].lpvData) +
i * lpStrideData->textureCoords[tex_index].dwStride);
copy_and_next(dest_ptr, tex_coord, GET_TEXCOORD_SIZE_FROM_FVF(dwVertexTypeDesc, i) * sizeof(D3DVALUE));
copy_and_next(dest_ptr, tex_coord, GET_TEXCOORD_SIZE_FROM_FVF(dwVertexTypeDesc, tex_index) * sizeof(D3DVALUE));
}
if (TRACE_ON(ddraw_geom)) {