Commit 531c4878 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

ddraw: ProcessVertices correction.

Use the texture index to get the texcoord size from the fvf, not the vertex index.
parent 368dab37
...@@ -360,7 +360,7 @@ process_vertices_strided(IDirect3DVertexBufferImpl *This, ...@@ -360,7 +360,7 @@ process_vertices_strided(IDirect3DVertexBufferImpl *This,
D3DVALUE *tex_coord = D3DVALUE *tex_coord =
(D3DVALUE *) (((char *) lpStrideData->textureCoords[tex_index].lpvData) + (D3DVALUE *) (((char *) lpStrideData->textureCoords[tex_index].lpvData) +
i * lpStrideData->textureCoords[tex_index].dwStride); 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)) { if (TRACE_ON(ddraw_geom)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment