Commit 7b5bf3d4 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

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

parent 06010471
...@@ -6536,7 +6536,11 @@ static void fragment_prog_arbfp(struct wined3d_context *context, const struct wi ...@@ -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)); state_arb_specularenable(context, state, STATE_RENDER(WINED3D_RS_SPECULARENABLE));
} }
context->last_was_pshader = FALSE; 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; context->last_was_pshader = TRUE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment