Henri Verbeet : wined3d: Fix constant setting for the ARB backend.

Alexandre Julliard julliard at winehq.org
Thu Dec 18 08:08:38 CST 2008


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Dec 17 17:07:24 2008 +0100

wined3d: Fix constant setting for the ARB backend.

---

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

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 326c8ba..9342040 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -3639,6 +3639,8 @@ UINT count) {
     This->highest_dirty_vs_const = max(This->highest_dirty_vs_const, start+count+1);
 
     IWineD3DDeviceImpl_MarkStateDirty(This, STATE_VERTEXSHADERCONSTANT);
+    memset(This->updateStateBlock->changed.vertexShaderConstantsF + start, 1,
+            sizeof(*This->updateStateBlock->changed.vertexShaderConstantsF) * count);
 
     return WINED3D_OK;
 }
@@ -4072,6 +4074,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetPixelShaderConstantF_DirtyConst(
     This->highest_dirty_ps_const = max(This->highest_dirty_ps_const, start+count+1);
 
     IWineD3DDeviceImpl_MarkStateDirty(This, STATE_PIXELSHADERCONSTANT);
+    memset(This->updateStateBlock->changed.pixelShaderConstantsF + start, 1,
+            sizeof(*This->updateStateBlock->changed.pixelShaderConstantsF) * count);
 
     return WINED3D_OK;
 }




More information about the wine-cvs mailing list