From b77b72c91ba8ae78e0a0b2eb558ec19175778a41 Mon Sep 17 00:00:00 2001 From: Ivan Gyurdiev Date: Thu, 20 Jul 2006 23:02:29 -0400 Subject: [PATCH] wined3d: Read shader constants from correct stateblock. --- dlls/wined3d/device.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 0a0e4e636ba..2956a155820 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -4650,7 +4650,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetVertexShaderConstantB( 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_GetVertexShaderConstantI( 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_GetVertexShaderConstantF( 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_GetPixelShaderConstantB( 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_GetPixelShaderConstantI( 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_GetPixelShaderConstantF( 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; } -- 2.11.4.GIT