Stefan Dösinger : wined3d: Skip the start offset to the source array in IWIneD3DVertexShaderImpl_SetLocalConstantsF .

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jun 26 07:11:42 CDT 2007


Module: wine
Branch: master
Commit: 97b1d0692c45336f18348584d1e3651341b12333
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=97b1d0692c45336f18348584d1e3651341b12333

Author: Stefan Dösinger <stefandoesinger at gmx.at>
Date:   Sat Jun 16 11:44:08 2007 +0200

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

---

 dlls/wined3d/vertexshader.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/vertexshader.c b/dlls/wined3d/vertexshader.c
index b534918..af6bc36 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);
     }
 




More information about the wine-cvs mailing list