wined3d: Update fragment program constants when switching from arb ffp draws.

This commit is contained in:
Stefan Dösinger 2014-11-28 11:16:43 +01:00 committed by Alexandre Julliard
parent 06010471c2
commit 7b5bf3d4d6
1 changed files with 5 additions and 1 deletions

View File

@ -6536,7 +6536,11 @@ static void fragment_prog_arbfp(struct wined3d_context *context, const struct wi
state_arb_specularenable(context, state, STATE_RENDER(WINED3D_RS_SPECULARENABLE));
}
context->last_was_pshader = FALSE;
} else {
}
else if (!context->last_was_pshader)
{
if (device->shader_backend == &arb_program_shader_backend)
context->constant_update_mask |= WINED3D_SHADER_CONST_PS_F;
context->last_was_pshader = TRUE;
}