Henri Verbeet : wined3d: Update shader constants on viewport changes.

Alexandre Julliard julliard at winehq.org
Thu Apr 8 11:12:41 CDT 2010


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Apr  7 21:04:47 2010 +0200

wined3d: Update shader constants on viewport changes.

Otherwise the vertex shader will see stale posFixup values.

---

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

diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index fc6d265..5d6c19a 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -4682,6 +4682,8 @@ static void viewport_vertexpart(DWORD state, IWineD3DStateBlockImpl *stateblock,
     if(!isStateDirty(context, STATE_RENDER(WINED3DRS_POINTSCALEENABLE))) {
         state_pscale(STATE_RENDER(WINED3DRS_POINTSCALEENABLE), stateblock, context);
     }
+    if (!isStateDirty(context, STATE_VERTEXSHADERCONSTANT))
+        shaderconstant(STATE_VERTEXSHADERCONSTANT, stateblock, context);
 }
 
 static void light(DWORD state, IWineD3DStateBlockImpl *stateblock, struct wined3d_context *context)




More information about the wine-cvs mailing list