wined3d: Update shader constants on viewport changes.

Otherwise the vertex shader will see stale posFixup values.
This commit is contained in:
Henri Verbeet 2010-04-07 21:04:47 +02:00 committed by Alexandre Julliard
parent cece23c7c9
commit e24473d531
1 changed files with 2 additions and 0 deletions

View File

@ -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)