From 97b1d0692c45336f18348584d1e3651341b12333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Sat, 16 Jun 2007 11:44:08 +0200 Subject: [PATCH] wined3d: Skip the start offset to the source array in IWIneD3DVertexShaderImpl_SetLocalConstantsF. --- dlls/wined3d/vertexshader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/vertexshader.c b/dlls/wined3d/vertexshader.c index b5349180f34..af6bc36bb97 100644 --- a/dlls/wined3d/vertexshader.c +++ b/dlls/wined3d/vertexshader.c @@ -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); }