Ivan Gyurdiev : wined3d: Read shader constants from correct stateblock.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jul 21 04:14:33 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: b77b72c91ba8ae78e0a0b2eb558ec19175778a41
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=b77b72c91ba8ae78e0a0b2eb558ec19175778a41

Author: Ivan Gyurdiev <ivg231 at gmail.com>
Date:   Thu Jul 20 23:02:29 2006 -0400

wined3d: Read shader constants from correct stateblock.

---

 dlls/wined3d/device.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 0a0e4e6..2956a15 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -4650,7 +4650,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl
     if (dstData == NULL || cnt < 0)
         return WINED3DERR_INVALIDCALL;
 
-    memcpy(dstData, &This->updateStateBlock->vertexShaderConstantB[start], cnt * sizeof(BOOL));
+    memcpy(dstData, &This->stateBlock->vertexShaderConstantB[start], cnt * sizeof(BOOL));
     return WINED3D_OK;
 }
 
@@ -4697,7 +4697,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl
     if (dstData == NULL || cnt < 0)
         return WINED3DERR_INVALIDCALL;
 
-    memcpy(dstData, &This->updateStateBlock->vertexShaderConstantI[start * 4], cnt * sizeof(int) * 4);
+    memcpy(dstData, &This->stateBlock->vertexShaderConstantI[start * 4], cnt * sizeof(int) * 4);
     return WINED3D_OK;
 }
 
@@ -4744,7 +4744,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl
     if (dstData == NULL || cnt < 0)
         return WINED3DERR_INVALIDCALL;
 
-    memcpy(dstData, &This->updateStateBlock->vertexShaderConstantF[start * 4], cnt * sizeof(float) * 4);
+    memcpy(dstData, &This->stateBlock->vertexShaderConstantF[start * 4], cnt * sizeof(float) * 4);
     return WINED3D_OK;
 }
 
@@ -4832,7 +4832,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl
     if (dstData == NULL || cnt < 0)
         return WINED3DERR_INVALIDCALL;
 
-    memcpy(dstData, &This->updateStateBlock->pixelShaderConstantB[start], cnt * sizeof(BOOL));
+    memcpy(dstData, &This->stateBlock->pixelShaderConstantB[start], cnt * sizeof(BOOL));
     return WINED3D_OK;
 }
 
@@ -4879,7 +4879,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl
     if (dstData == NULL || cnt < 0)
         return WINED3DERR_INVALIDCALL;
 
-    memcpy(dstData, &This->updateStateBlock->pixelShaderConstantI[start * 4], cnt * sizeof(int) * 4);
+    memcpy(dstData, &This->stateBlock->pixelShaderConstantI[start * 4], cnt * sizeof(int) * 4);
     return WINED3D_OK;
 }
 
@@ -4926,7 +4926,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl
     if (dstData == NULL || cnt < 0)
         return WINED3DERR_INVALIDCALL;
 
-    memcpy(dstData, &This->updateStateBlock->pixelShaderConstantF[start * 4], cnt * sizeof(float) * 4);
+    memcpy(dstData, &This->stateBlock->pixelShaderConstantF[start * 4], cnt * sizeof(float) * 4);
     return WINED3D_OK;
 }
 




More information about the wine-cvs mailing list