Module: wine Branch: refs/heads/master Commit: 531c4878078a899b1617bc2deea24381d503fc96 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=531c4878078a899b1617bc2d...
Author: Stefan Dösinger stefandoesinger@gmx.at Date: Sat Feb 11 20:30:13 2006 +0100
ddraw: ProcessVertices correction. Use the texture index to get the texcoord size from the fvf, not the vertex index.
---
dlls/ddraw/vertexbuffer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ddraw/vertexbuffer.c b/dlls/ddraw/vertexbuffer.c index 0702f0f..37c478f 100644 --- a/dlls/ddraw/vertexbuffer.c +++ b/dlls/ddraw/vertexbuffer.c @@ -360,7 +360,7 @@ process_vertices_strided(IDirect3DVertex 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)) {