From d2ad2df6377125beebf841bf9696f39aa2275455 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Wed, 9 Dec 2009 11:51:15 +0100 Subject: [PATCH] wined3d: Remove a few redundant assignments. --- dlls/wined3d/arb_program_shader.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c index 64014073a5e..42ed898a4d1 100644 --- a/dlls/wined3d/arb_program_shader.c +++ b/dlls/wined3d/arb_program_shader.c @@ -5275,7 +5275,6 @@ static void state_texfactor_arbfp(DWORD state, IWineD3DStateBlockImpl *statebloc if(device->shader_backend == &arb_program_shader_backend) { if (use_ps(stateblock)) return; - device = stateblock->wineD3DDevice; context->pshader_const_dirty[ARB_FFP_CONST_TFACTOR] = 1; device->highest_dirty_ps_const = max(device->highest_dirty_ps_const, ARB_FFP_CONST_TFACTOR + 1); } @@ -5297,7 +5296,6 @@ static void state_arb_specularenable(DWORD state, IWineD3DStateBlockImpl *stateb if(device->shader_backend == &arb_program_shader_backend) { if (use_ps(stateblock)) return; - device = stateblock->wineD3DDevice; context->pshader_const_dirty[ARB_FFP_CONST_SPECULAR_ENABLE] = 1; device->highest_dirty_ps_const = max(device->highest_dirty_ps_const, ARB_FFP_CONST_SPECULAR_ENABLE + 1); }