ddraw: ProcessVertices correction.
Use the texture index to get the texcoord size from the fvf, not the vertex index.
This commit is contained in:
parent
368dab37ec
commit
531c487807
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue