wined3d: Skip the start offset to the source array in IWIneD3DVertexShaderImpl_SetLocalConstantsF.

This commit is contained in:
Stefan Dösinger 2007-06-16 11:44:08 +02:00 committed by Alexandre Julliard
parent 4f8eb6a32e
commit 97b1d0692c
1 changed files with 1 additions and 1 deletions

View File

@ -613,7 +613,7 @@ static HRESULT WINAPI IWIneD3DVertexShaderImpl_SetLocalConstantsF(IWineD3DVertex
if (!lconst) return E_OUTOFMEMORY;
lconst->idx = i;
CopyMemory(lconst->value, src_data + i * 4, 4 * sizeof(float));
memcpy(lconst->value, src_data + (i - start_idx) * 4 /* 4 components */, 4 * sizeof(float));
list_add_head(&This->baseShader.constantsF, &lconst->entry);
}