Henri Verbeet : wined3d: Update shader constants on viewport changes.
Module: wine Branch: master Commit: e24473d53120f6edcabe9a367de5ef7fb765aefe URL: http://source.winehq.org/git/wine.git/?a=commit;h=e24473d53120f6edcabe9a367d... Author: Henri Verbeet <hverbeet(a)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)
participants (1)
-
Alexandre Julliard