[PATCH 1/5] wined3d: Remove a few redundant assignments.

Henri Verbeet hverbeet at codeweavers.com
Wed Dec 9 04:51:15 CST 2009


---
 dlls/wined3d/arb_program_shader.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c
index 6401407..42ed898 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);
     }
-- 
1.6.4.4




More information about the wine-patches mailing list